Running powershell on new computer - Beginners

Hi

Some time when you have setup a new computer, you might need to run powershell on the same.
By default Powershell execution policy is "Restricted".

to set it unrestricted execute following command:-

PS C:\> Set-ExecutionPolicy Unrestricted

The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic. Do you want to change the execution
policy?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y

After pressing 'Y', It will set execution policy unrestricted.

Reference links:-

https://technet.microsoft.com/en-us/library/ee176961.aspx

https://technet.microsoft.com/en-us/library/hh849812.aspx


Comments

Popular posts from this blog

Workflow Orchestration Tools (Stateless vs Workflow Core vs Elsa vs Step Functions vs Hangfire)

FastEndpoint vs Minimal APIs vs Controller

Recursive Query Using CTE in SQL Server