I am trying to execute a script from a shared folder that I trust:
PowerShell -file "\\server\scripts\my.ps1"
But I get a security warning and must press "R" to continue
Safety warning. Run only scripts that you trust. Although scripts from the Internet can be useful, this script can harm your computer. Do you want to run \ Server \ Scripts \ my.ps1? [D] Do not start [R] Run once [S] Pause [?] Help (default is "D"): d
Can I ignore this warning? Desired pseudo code I want:
PowerShell -IGNORE_SECURITY_WARNING -file "\\server\scripts\my.ps1"
security powershell
alex2k8 Apr 08 '09 at 0:58 2009-04-08 00:58
source share