Start PowerShell Script hidden via Task Scheduler

The Task Scheduler is a popular tool to run scripts scheduled on a client or server. Either at regular intervals or on a specific event, such as a user login.

However, the user should be aware of these scheduled tasks as few as possible while the system is running. Unfortunately, parameters like “-WindowStyle Hidden” are of limited help here.

The simplest solution is a small VB-Script, which executes the Powershell-Script invisible for the logged in user:

command = "powershell.exe -nologo -command C:\Temp\Dev\Test.ps1"
set shell = CreateObject("WScript.Shell")
shell.Run command,0

Task Scheduler
Task Scheduler
5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments