If you get the following error when trying to run cmdlets in PowerShell it means it has not been configured to run scripts
“Files cannot be loaded because running scripts is disabled on this system. Provide a valid certificate with which to sign the files.”
- Click on the Start Menu and type in PowerShell -> Right Click on PowerShell and select Run As Administrator
- Run the Following Command
Set-ExecutionPolicy RemoteSigned
- Type in ‘Y‘ to accept the change

Restart PowerShell and cmdlets will now run ok. You only need to run this once on the computer and not every time you use PowerShell