Skip to content

(#38) fix: hide PowerShell window for scheduled task execution#39

Merged
seunggabi merged 1 commit intomainfrom
fix/#38_hide-pwsh-window
Feb 21, 2026
Merged

(#38) fix: hide PowerShell window for scheduled task execution#39
seunggabi merged 1 commit intomainfrom
fix/#38_hide-pwsh-window

Conversation

@seunggabi
Copy link
Copy Markdown
Owner

Summary

  • Add -WindowStyle Hidden -NonInteractive to pwsh arguments in WinOpsTask.xml and TaskScheduler.psm1
  • Auto-detect existing scheduled task on reinstall in install.ps1 — reinstalling without -InstallScheduledTask flag now updates the task automatically

Test plan

  • Register scheduled task and confirm pwsh window does not appear on execution
  • Run install.ps1 on a machine with an existing task and confirm it auto-updates
  • Run Install-WinOpsScheduledTask -Force and verify Arguments contains -WindowStyle Hidden

Closes #38

🤖 Generated with Claude Code

Add -WindowStyle Hidden and -NonInteractive to pwsh arguments in
WinOpsTask.xml and TaskScheduler.psm1 so the console window does not
remain open after Task Scheduler runs the cleanup script.

Also update install.ps1 to auto-detect an existing scheduled task on
reinstall and update it automatically without requiring -InstallScheduledTask.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@seunggabi seunggabi merged commit 92aea7f into main Feb 21, 2026
2 checks passed
@seunggabi seunggabi deleted the fix/#38_hide-pwsh-window branch February 21, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: hide PowerShell window when running scheduled task

1 participant