PowerShell Scripts Cannot be loaded

To clear the below error

File D:\Execute.ps1 cannot be loaded because running scripts is disabled on this
system. For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.


1) Run the Power Shell as administrator
2) Enter the below command


Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "Unrestricted"

Comments

Popular posts from this blog

How to copy SharePoint list workflow

Generate Auto number Field in SharePoint list

INFOPATH FORM HIDE/DISABLE FIELDS BASED ON SHAREPOINT GROUP MEMBERSHIP