New
#1
Poweshell script not starting, while using arg -ExecutionPolicy Bypass
I want to launch specific ps1 script using -ExecutionPolicy Bypass, because it doesn't work otherwise.
I found this line from multiple sources, but when i execute this command in a bat file, or directly in PowerShell. It just hangs and nothing happens...
I launched powershell as admin. I have set restricted policy on machine. But i read, this command should bypass it. Yet it doesn't work. I tried putting -ExecutionPolicy at the end, or using quotes for path. Nothing works...Code:powershell.exe -ExecutionPolicy Bypass -File C:\MyUnsignedScript.ps1