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”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s