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.