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

