SID-500

Home » PowerShell » Windows Server 2012/2016: Installing and Configuring PowerShell Web Access (PSWA)

Windows Server 2012/2016: Installing and Configuring PowerShell Web Access (PSWA)

PowerShell on Samsung Galaxy and iPhone? PowerShell Web Access is a new Windows Server Feature. It provides a web-based PowerShell Console. After installing, you can access PowerShell from any device, even from your Samsung Galaxy or iPhone.

The setup is a three step process:

  1. Installing PowerShell Web Access (and its sub-features)
  2. Installing the certificate
  3. Configuring access rules

Installing PowerShell Web Access

Run the following One-Liner to install PowerShell Web Access on Windows Server 2012 or 2016.

Install-Windowsfeature WindowsPowerShellWebaccess -IncludeManagementTools

1.PNG

No restart needed. We can move on.

Installing the certificate

Install-PswaWebApplication -UseTestCertificate

2.PNG

Don´t use a test certificate in a real environment. Obtain it from your Certification Authority as described in my series Active Directory Zertifikatsdienste (Teil 1-8).

Configuring Access Rules

Add-PswaAuthorizationRule -UserName * -ComputerName * -ConfigurationName *

3.PNG

* means access from any user and computer. In this article i keep it simple. In a real environment i recommend to restrict access allowing only trusthworty users to access PowerShell Web Access.

PowerShell Web Access in Action

Now open a web browser and type

https://localhost/pswa 

4.PNG

Provide username, password, and computer name (PowerShell Web Access can act as a gateway for other hosts, therefore you have to provide a computername). For remote access localhost must be replaced by the computername or domainname.

6

Test successful!

7.PNG

Conclusion

What a great feature! Access to PowerShell from any device! More information about Remote Access to Windows Servers in my articles

Remote Desktop aktivieren und Verbindung herstellen (Windows Server / Windows 10)

Remote Desktop Verbindungen mit iPhone und Android herstellen

Enter-PSSession: Trusted Hosts konfigurieren

Mit New-PSSession gleichzeitig auf mehrere Server verbinden


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Categories

Who is the blogger?

My name is Patrick Grünauer (pewa2303). I am from Austria. On sid-500 I write about Windows, Cisco and IT-Security in English and German. Have fun while reading!

Patrick Gruenauer
Follow SID-500 on WordPress.com