Windows Server 8 – Web Based PowerShell !

One another great feature of Windows Server 8 is ability to run your PowerShell commands on your browser from anywhere. This is really amazing feature. While PowerShell is becoming a “must” tool for almost all Microsoft products, using it on your mobile phone or browser will add great value to our day-to-day tasks.

This feature is called as Windows PowerShell Web Access and it resides as a Windows Server 8 feature.

In this blog post we’ll discuss how to install and configure this amazing feature.

PowerShell Web Access is not enabled by default in Windows Server 8. So firstly you have to add this feature using new designed Server Manager.

Open your Server Manager and click  Add Roles and Features


Click Next for the Welcome Page.


In Features page, Select Windows PowerShell Web Access


Some IIS features are required to manage PowerShell over IIS.


Finish Installation.



As you notice setup warns us about additional configuration requirements.

These are;

  • An application Pool on IIS
  • A Web Application
  • A Certificate

For testing purposes you can use one simple line PowerShell command to configure all above steps.

Install-PswaWebApplication –UseTestCertificate

This command creates required application pool and web application. Also it creates  and binds a self-signed certificate.

Please note that using a test certificate in a production environment is not recommended due to security reasons.


Here is the virtual directory that is created by command.


In order to connect /pswa virtual directory remotely, we have to create an authorization rule. By default no authorization rule is defined. You can check it with Get-PswaAuthorizationRule cmdlet.


To create authorization rule Add-PswaAuthorizationRule command can be used. But before, I created an Active Directory group called PSAdmins and add administrator as member.


And used –UserGroupName parameter.


You can also use –UserName parameter to create authorization rule for individual user objects.


Authorization rules are XML files and stored in WindowsWebPowerShellWebAccessData directory.


You can manually edit and configure these files;


Now on my Windows 8 Client machine, I browse for related server with /pswa directory.

It gives certificate error as expected due to self-signed certificate.


Providing my credentials.


And here is the Web Based PowerShell. It’s connected to remote machine and all executed PS Commands runs on remote machine.


Now you can manage your systems with PowerShell from anywhere. Only requirement is to access related pswa directory over HTTPS. That’s really cool!


Anıl Erduran.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

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

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.