0

When I try to run the powershell script using PowerShell ISE, I am getting the below error

File C:\Users\user1\test.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

How Can I fix this?

Question is closed for new answers.
admin Selected answer as best February 5, 2023