Powershell Tutorial Online

Issues System Error

Some users might get below errors they changed my execution policy to Unrestricted. Also, Get-ExecutionPolicy is showing 'Unrestricted'. When try to execute commands following error "File cannot be loaded because the execution of scripts is disabled on this system"

In this type of scenario you have to use -Force switch
Set-ExecutionPolicy Unrestricted -Force

Ignorant sysadmins, sometime forgot to make restrictions on powershell script execution.
You can bypass this policy by adding -ExecutionPolicy ByPass when running PowerShell

    powershell -ExecutionPolicy ByPass -File anyPsFile.ps1