Configuring Windows 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. To configure this feature we need to install WindowsPowershellWebAccess component and create PSWA application with security rule for it.

My demo: Server 2012 Datacenter named as Server1 and Windows 8 for remote connection

From client OS I create new remote powershell session to Server1:

New-PsSession Server1

Enter to created PS session:

Enter-PsSession 2

And install PWA feature:

Install-WindowsFeature WindowsPowerShellWebAccess -IncludeManagementTools -Verbose

pwa_1

Then we need to create app for PSWA:

Install-PswaWebApplication -UseTestCertificate -Verbose

pwa_2

More details: http://technet.microsoft.com/en-us/library/jj592894.aspx

By default, there are no rules for user authorization , so we have to create one:

Add-PswaAuthorizationRule -ComputerGroupName * -configurationName * -UserGroupName * -Verbose

*” allows all users access to all endpoints on all computers. This essentially turns off authorization rules (just for test)

More details: http://technet.microsoft.com/en-us/library/jj592890.aspx

Open your browser and type https://servernamewherepswaisinstalled/pswa . In my case, https://server1/pswa

pwa_3

Enter your credentials, computer name and sign in

pwa_7

There are no many options in PWA. The most interesting is ability to SAVE your session.

For example, let’s create alias $upd = Get-Service wua* in the current session

pwa_4

Then click on SAVE button to sign out without losing our alias $upd

pwa_5

Sign in again to PWA and notice that PWA saved our session as PSWA1 .

We can create new session or continue to work in previously created session (try to use $upd. it works)

pwa_6

TIP: TAB works in PWA too. Use it as usual.

More details about configuring PWA: http://technet.microsoft.com/en-gb/library/hh831611.aspx

One thought on “Configuring Windows Powershell Web Access”

  1. Get the following error:

    The Windows PowerShell Web Access gateway cannot establish a connection to the destination computer. Contact the gateway administrator. The error at the gateway is: The WinRM client cannot process the request because the server name cannot be resolved.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: