Tag Archives: run powershell script

How to run a PowerShell script

So you have a PowerShell script and you just want to run it without messing around with permissions, policies, signing it or any other crap. (Yes yes I know all those things are vital for system wide security but you’re in a hurry damn it!)

Right click PowerShell and run as administrator.

When the terminal is open run the following line:

Set-ExecutionPolicy RemoteSigned

When prompted type the letter A and press Enter (if applicable).

Run the below including “&” at start of line with reference to your script, i.e.

& “C:\YourTestDirectory\YourTestFile.ps1”