Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top