Do I trust myself? Heck, yes!

Here you are, all proud that you finished your first Powershell script. Cool! Congrats. PAt yourself on the back!

Now try running it. Most likely you're getting a little pesky prompt telling you to run the script only if if you trust the publisher of the script, blah, blah blah. Great stuff - if you downloaded the thing from the Big Bad Internet - but VERY annoying if you want to run the script automatically (e.g. as a login script or the like). Of course I trust the publisher! I'm not THAT paranoid! So here's how to get around the prompt (drum roll, please): Use the ExecutionPolicy switch!

PowerShell -ExecutionPolicy Bypass -File <your_path_and_scriptname>