Forum Discussion
Schulzi
Oct 01, 2020Brass Contributor
Scheduled Task
Hi everyone, I created a Scheduled-Task with Powershell that looks like that: $Execute = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
$Argument = "Z:\Applications\002Diverse_Inst...
Tom_S
Oct 05, 2020Brass Contributor
Schulzi wrote:Are there any arguments in the Task-Scheduler (under $Argument) to start the PS window minimized WITHOUT using a .vbs-Script?
So far i tried putting "-WindowStyle minimized/hidden" as an Argument, only thing that happened was a shorter flash of the window.
Schulzi ,
From about_Powershell.exe try
-NoLogo
and/or
-NonInteractive
It isn't clear from your message that you tried only -WindowStyle Hidden. The string "minimized/hidden" is not a valid value. Perhaps you meant minimized | hidden, meaning "OR"?
- SchulziOct 05, 2020Brass ContributorI did mean "or", I know that "/" in powershell isn't right, just a quicker way to descibe it here