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...
-
Powershell Design Patterns Decorator ```powershell # Classe base 'Beverage' class Beverage { [string]$description = "Unkno...
-
apt-get install lm-sensors sensors-detect watch -n 1 sensors
-
novo funciona: [global] guest account = nobody passdb backend = tdbsam os level = 20 security = user workgroup = WORKGROUP ...

Nenhum comentário:
Postar um comentário