PS: Web Access

1 minute read

Description:

Windows PowerShell Web Access acts as a Windows PowerShell gateway, providing a web-based Windows PowerShell console that is targeted at a remote computer. It enables IT Pros to run Windows PowerShell commands and scripts from a Windows PowerShell console in a web browser, with no Windows PowerShell, remote management software, or browser plug-in installation necessary on the client device. All that is required to run the web-based Windows PowerShell console is a properly-configured Windows PowerShell Web Access gateway, and a client device browser that supports JavaScript and accepts cookies.

To Resolve:

  1. First run:

    1
    
    Install-WindowsFeature WindowsPowershellWebAccess
    
    • This installs IIS, .NET v4.5, and a new PS Module
  2. Next you run:

    1
    
    Install-PSWAWebApplication -UseTestCertificate
    
    • This installs creates a 90 day test cert, you are highly advised to point to your own signed cert instead.
  3. Next you run:

    1
    
    Add-PSWAAuthorizationRule -Computername Computername -Username Domainuser
    
    • This allows a user to control a remote computer.
  4. Next you run:

    1
    
    Add-PSWAAuthorizationRule * * *
    
    • This allows you to have full control. Typically not what you want, but it’s just for testing.
  5. You should now be able to open up a browser and use it to run powershell on any machine in your network you have access to.

  6. I just scratched the surface of this, but will continue to look into how it works.

References:

“Install and Use Windows PowerShell Web Access”

Comments