Windows Task Scheduler Job popup is showing whenever the job runs

ABHISHEK KUMAR 81 Reputation points
2025-07-03T06:02:31.8633333+00:00

The scheduled job window (PowerShell window) is displaying whenever the Job runs. By mistake, if we clicked the job is failing. Is there any way to keep the popup hidden?.

Windows for business | Windows Server | Windows cloud | Deploy Azure Local
0 comments No comments
{count} votes

Answer accepted by question author
  1. Doaa Ali Hamdan AL-Jarwani 340 Reputation points
    2025-07-03T07:05:38.81+00:00

    Yes, you can hide the PowerShell window by changing the task settings in Task Scheduler.

    When editing the task, go to the “General” tab and set the “Configure for” option to match your OS.

    Then in the “Actions” tab, instead of using powershell.exe, use this command:

    powershell.exe -WindowStyle Hidden -File "C:\Path\To\YourScript.ps1"

    This will run the script silently without showing the window.

    Also, make sure the task is set to “Run whether user is logged on or not” and that “Do not store password” is unchecked if needed.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.