Install and Configure Powershell Web Access on Windows Server

What is PowerShell Web Access?

Windows PowerShell® Web Access, first introduced in Windows Server® 2012, 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. -https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh831611(v=ws.11)

Install PowerShell Web Access

  1. Log into the Windows Server device
  2. Run the following commands in PowerShell as administrator
    # install IIS and powershell web access
    Add-WindowsFeature –name Web-Server,WindowsPowerShellWebAccess -IncludeManagementTools
    # configure powershell web access gateway
    Install-PswaWebApplication –webApplicationName powershell –useTestCertificate
    # grant PSWA access to current user on current server
    Add-PswaAuthorizationRule -UserName $ENV:UserDNSDomain\$ENV:UserName -ComputerName * -ConfigurationName *
    # or grant access to all users
    Add-PswaAuthorizationRule * * *
  3. Open a web browser and navigate to https://DNSorIP/powershell
  4. Login using the credentials authorized above

    User name: <domain>\<username>
    Password: <user password>
    Connection type: Computer Name
    Computer name: <fully qualified server name>

    User name: i12bretro.local\i12bretro
    Password: <user password>
    Connection type: Computer Name
    Computer name: i12bretrodc.i12bretro.local

  5. Click Sign In
  6. Welcome to Powershell Web Access

Source: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh831611(v=ws.11)
More Info: https://docs.microsoft.com/en-us/previous-versions//hh918342(v=technet.10)?redirectedfrom=MSDN