Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
windows:windows-tutorials:allow-remote-signed-ps-scripts [2024/10/09 13:24] – removed - external edit (Unknown date) 127.0.0.1windows:windows-tutorials:allow-remote-signed-ps-scripts [2024/10/09 13:25] (current) Zyzonix
Line 1: Line 1:
 +====== Run remote-signed PowerShell Scripts ======
  
 +Windows blocks the execution of remote signed PowerShell scripts by default.
 +If your execution policy still has this setting, you might see this error message:
 +<code bash>
 +C:\Users\test-user\Downloads\Install.ps1 is not digitally signed. You cannot run this script on the current system. For more
 +information about running scripts and setting execution policy, see about_Execution_Policies at
 +https:/go.microsoft.com/fwlink/?LinkID=135170.
 +At line:1 char:1
 ++ .\Install.ps1
 ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 +    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
 +    + FullyQualifiedErrorId : UnauthorizedAccess
 +</code>
 +
 +Just run the following command as Administrator within a PowerShell console:
 +<code bash>
 +set-executionpolicy remotesigned
 +</code>