User Tools

Site Tools


powershell

Differences

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

Link to this comparison view

powershell [2026/03/01 19:18] – created reddypowershell [2026/04/18 11:56] (current) reddy
Line 61: Line 61:
  
 See these instructions on enabling PowerShell remoting: [[https://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/|https://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/]] See these instructions on enabling PowerShell remoting: [[https://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/|https://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/]]
 +
 +==== Windows ====
 +
 +For the "running scripts is disabled on this system" error on Windows 11...
 +
 +To run a single script:
 +
 +<code>
 +powershell -ExecutionPolicy Bypass -File .\yourscript.ps1.
 +</code>
 +
 +To permanently enable:
 +
 +<code>
 +Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
 +# Remove the "-Scope CurrentUser" to make the change system-wide.
 +</code>
 +
 +or, from Settings - Privacy and Security - Powershell, set to On the "Change execution policy to allow local PowerShell scripts to run without signing".
  
powershell.1772389126.txt.gz · Last modified: by reddy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki