PowerShell 2.0 and later
If you use PowerShell at home or in an unmanaged environment, here are some steps you should consider to make PowerShell fully functional.
To check out the PowerShell version you use, try this:
PS> $PSVersionTable.PSVersion.Major 4
If the version is lower than 4, investigate why you are using an outdated version, and whether you can upgrade.
To enable script execution, run this:
PS> Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force
You will now be able to run script located anywhere. If you are a beginner and want some extra protection, replace “Bypass” with “RemoteSigned”. This will keep you from running PowerShell scripts that were downloaded from the Internet or received as email attachment. It will also prevent you from running scripts outside your own domain, though.