I created a simple PowerShell script that is a .ps1 file extension. I tried running it and I.hello.ps1 : File C:UsersJohnZalubskidesktophello.ps1 cannot be loaded because running scripts is disabled on
this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
- .hello.ps1
-
+ CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess got the compile error of
Is there anyway around this?
I thought I could run the script without admin privileges.
New contributor
John Z is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.