How disable the security warning

3.2k views Asked by At

How disable the security warning:

Run only scripts that you trust
While scripts from the Internet can be useful, this script can potentially harm your computer
Do you want to run in POWERSHELL

I have tried setting the policy to unrestricted.

The OS is windows server 2003.

The script which I'm trying to execute is in the network drive.

1

There are 1 answers

1
Joey On BEST ANSWER

Network locations are usually put in the same untrusted zone as the rest of the internet. You can add the location to your trusted sites or you can change the execution policy with Set-ExecutionPolicy from an elevated PowerShell.