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
- Log into the Windows Server device
- 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 * * * - Open a web browser and navigate to https://DNSorIP/powershell
- 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 - Click Sign In
- 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