Just use this syntax:
powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File \\local\folder1\folder2\folder3\scripts\Start-PowershellScript.ps1
First create a program with program wizard without this ugly command line, just select script name normally. After the program has been created, in properties panel put the command line.
Assinar:
Postar comentários (Atom)
Decorator Powershell Design Patterns
Powershell Design Patterns Decorator ```powershell # Classe base 'Beverage' class Beverage { [string]$description = "Unkno...
-
ssh -oHostKeyAlgorithms=+ssh-dss admin@192.168.0.11
-
Under windows: Set environment variables: http_proxy=http://DOMAIN\user:pass@proxy:port https_proxy=https://DOMAIN\user:pass@proxy:port...
-
Just create a normal collection and do not put any workstations inside. After, select query and point to your configuration baseline, like t...
Nenhum comentário:
Postar um comentário