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...
-
Como instalar TP-Link UE300 no Kubuntu: sudo ip l s dev enxd46e0e169782 up ou sudo ip l s dev enp6s0 up em: sudo gedit /etc/netplan/01-net...
-
Its easy: Open command prompt as administrator and type: bcdedit /copy {current} /d "Windows 10 (com Hyper-V)" This will mak...

Nenhum comentário:
Postar um comentário