{"id":353,"date":"2017-07-24T15:53:18","date_gmt":"2017-07-24T13:53:18","guid":{"rendered":"https:\/\/msb365.abstergo.ch\/?p=353"},"modified":"2017-07-24T15:53:18","modified_gmt":"2017-07-24T13:53:18","slug":"windows-server-20122016-installing-configuring-powershell-web-access-pswa","status":"publish","type":"post","link":"https:\/\/www.msb365.blog\/?p=353","title":{"rendered":"Windows Server 2012\/2016: Installing and Configuring PowerShell Web Access (PSWA)"},"content":{"rendered":"<p>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.<\/p>\n<p>The setup is a three step process:<\/p>\n<ol>\n<li>Installing PowerShell Web Access (and its sub-features)<\/li>\n<li>Installing the certificate<\/li>\n<li>Configuring access rules<\/li>\n<\/ol>\n<h2>Installing PowerShell Web Access<\/h2>\n<p>Run the following One-Liner to install PowerShell Web Access on Windows Server 2012 or 2016.<\/p>\n<pre><strong>Install-Windowsfeature WindowsPowerShellWebaccess -IncludeManagementTools<\/strong><\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-20985\" src=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/128.png?w=730\" sizes=\"(max-width: 730px) 100vw, 730px\" srcset=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/128.png?w=730 730w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/128.png?w=60 60w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/128.png?w=300 300w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/128.png?w=768 768w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/128.png 978w\" alt=\"1.PNG\" data-attachment-id=\"20985\" data-permalink=\"https:\/\/sid-500.com\/2017\/06\/29\/windows-server-20122016-installing-and-configuring-powershell-web-access-pswa\/1-259\/\" data-orig-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/128.png?w=730\" data-orig-size=\"978,213\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"1\" data-image-description=\"\" data-medium-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/128.png?w=730?w=300\" data-large-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/128.png?w=730?w=730\" \/><\/p>\n<p>No restart needed. We can move on.<\/p>\n<h2>Installing the certificate<\/h2>\n<pre><strong>Install-PswaWebApplication -UseTestCertificate<\/strong><\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-20987\" src=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/217.png?w=730\" sizes=\"(max-width: 730px) 100vw, 730px\" srcset=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/217.png?w=730 730w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/217.png?w=60 60w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/217.png?w=300 300w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/217.png?w=768 768w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/217.png 979w\" alt=\"2.PNG\" data-attachment-id=\"20987\" data-permalink=\"https:\/\/sid-500.com\/2017\/06\/29\/windows-server-20122016-installing-and-configuring-powershell-web-access-pswa\/2-110\/\" data-orig-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/217.png?w=730\" data-orig-size=\"979,546\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"2\" data-image-description=\"\" data-medium-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/217.png?w=730?w=300\" data-large-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/217.png?w=730?w=730\" \/><\/p>\n<p>Don\u00b4t use a test certificate in a real environment.<\/p>\n<h2>Configuring Access Rules<\/h2>\n<pre><strong>Add-PswaAuthorizationRule -UserName * -ComputerName * -ConfigurationName *<\/strong><\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-21023\" src=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/316.png?w=730\" sizes=\"(max-width: 730px) 100vw, 730px\" srcset=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/316.png?w=730 730w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/316.png?w=60 60w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/316.png?w=300 300w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/316.png?w=768 768w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/316.png 980w\" alt=\"3.PNG\" data-attachment-id=\"21023\" data-permalink=\"https:\/\/sid-500.com\/2017\/06\/29\/windows-server-20122016-installing-and-configuring-powershell-web-access-pswa\/3-82\/\" data-orig-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/316.png?w=730\" data-orig-size=\"980,172\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"3\" data-image-description=\"\" data-medium-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/316.png?w=730?w=300\" data-large-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/316.png?w=730?w=730\" \/><\/p>\n<p>* 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.<\/p>\n<h2>PowerShell Web Access in Action<\/h2>\n<p>Now open a web browser and type<\/p>\n<pre><strong>https:\/\/localhost\/pswa<\/strong><\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-20990\" src=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/415.png?w=730\" sizes=\"(max-width: 730px) 100vw, 730px\" srcset=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/415.png?w=730 730w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/415.png?w=60 60w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/415.png?w=300 300w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/415.png?w=768 768w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/415.png 1005w\" alt=\"4.PNG\" data-attachment-id=\"20990\" data-permalink=\"https:\/\/sid-500.com\/2017\/06\/29\/windows-server-20122016-installing-and-configuring-powershell-web-access-pswa\/4-70\/\" data-orig-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/415.png?w=730\" data-orig-size=\"1005,490\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"4\" data-image-description=\"\" data-medium-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/415.png?w=730?w=300\" data-large-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/415.png?w=730?w=730\" \/><\/p>\n<p>Provide username, password, and computer name (PowerShell Web Access can act as a gateway for other hosts, therefore you have to provide a computername).\u00a0For remote access localhost must be replaced by the computername or domainname.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-21011\" src=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/610.png?w=730\" sizes=\"(max-width: 730px) 100vw, 730px\" srcset=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/610.png?w=730 730w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/610.png?w=60 60w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/610.png?w=300 300w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/610.png?w=768 768w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/610.png 893w\" alt=\"6\" data-attachment-id=\"21011\" data-permalink=\"https:\/\/sid-500.com\/2017\/06\/29\/windows-server-20122016-installing-and-configuring-powershell-web-access-pswa\/6-43\/\" data-orig-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/610.png?w=730\" data-orig-size=\"893,497\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"6\" data-image-description=\"\" data-medium-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/610.png?w=730?w=300\" data-large-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/610.png?w=730?w=730\" \/><\/p>\n<p>Test successful!<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-21019\" src=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png?w=730\" sizes=\"(max-width: 730px) 100vw, 730px\" srcset=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png?w=730 730w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png?w=60 60w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png?w=300 300w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png?w=768 768w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png?w=1024 1024w, https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png 1091w\" alt=\"7.PNG\" data-attachment-id=\"21019\" data-permalink=\"https:\/\/sid-500.com\/2017\/06\/29\/windows-server-20122016-installing-and-configuring-powershell-web-access-pswa\/7-37\/\" data-orig-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png?w=730\" data-orig-size=\"1091,652\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"7\" data-image-description=\"\" data-medium-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png?w=730?w=300\" data-large-file=\"https:\/\/patrick6649.files.wordpress.com\/2017\/06\/76.png?w=730?w=730\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: Installing PowerShell Web Access (and its sub-features) Installing the certificate Configuring [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-powershell"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=353"}],"version-history":[{"count":2,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":355,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions\/355"}],"wp:attachment":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}