Showing posts with label PowerShell. Show all posts
Showing posts with label PowerShell. Show all posts

Tuesday, July 19, 2011

Running Powershell Interactively

When you run a powershell script locally in a powershell box, you will get error message like "Script cannot be loaded because execution of script is disabled on the the system.."

This is in fact what it says, execution of script is prohibited.  This is the default settings:  To run script interactively on the box, execute this command:

"Set-ExecutionPolicy RemoteSigned"

You will be fine after that.