Announcement

Collapse
No announcement yet.

Windows Server 2012: PowerShell Web Access - Installation / Configuration

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows Server 2012: PowerShell Web Access - Installation / Configuration

    Windows Server 2012: PowerShell Web Access

    A new feature in Windows Server 2012 which acts as a Windows PowerShell gateway and providing a web-based Windows PowerShell console targets at a remote server is a "PowerShell Web Access".

    Please refer to the steps for installing Windows PowerShell Web Access:

    1. From the windows server, open the Server Manager and click on "Add roles and features".
    2. Proceed for the "Add roles and features Wizard".
    3. Select "Role-based or feature-based installation" >> Select a server from the server pool >> Click Next on the Server Roles page.
    4. Go to the "Features" option, expand "Windows PowerShell" >> select "Windows PowerShell Web Access".



    5. Once you click the option, you will get the popup windows for "Add features that are required for Windows PowerShell Web Access?".
    6. Click "Add Features" >> Click Next and Install the feature.

    Following are the steps to configure PowerShell Web Access Gateway so that my Application Pool should be available in my IIS Manager under Default Website. WE WILL PERFORM THE FOLLOWING USING POWERSHELL.

    The default path for the PowerShell Web Access is "C:\Windows\Web\PowerShellWebAccess\wwwroot"

    Configure PowerShell Web Access Gateway using the following PowerShell

    On the Windows server, open the Powershell.
    Click Start >> Click Windows Powershell.

    Once it is open, execute the following command:

    Install-PswaWebApplication –UseTestCertificate


    Once the above has been executed, you can verify the same in IIS. Please make sure to check the following points:

    ApplicationPool: pswa_pool
    PhysicalPath: C:\Windows\Web\PowerShellWebAccess\wwwroot
    Now, open IIS and verify the application "pswa" created.



    Open the browser on the server and access the application "pswa". Click "Continue to the website (Not recommended)" and proceed further.





    Configuration of Authorization Rule and Site Security:

    we will need to allow some users access to the Windows PowerShell Web Access.

    Rule should be same as below:
    Add-PswaAuthorizationRule –UserName * -ComputerName * -ConfigurationName *
    If we execute the following command in the Powershell:

    Add-PswaAuthorizationRule * * *
    With the help of the above command, it allows all authorized network users access to all servers on the network with access.

    Regards,
    Euk:Mary

  • #2
    Re: Windows Server 2012: PowerShell Web Access - Installation / Configuration

    Thanks for sharing this valuable piece of information Mary! It'll definitely be helpful for server admins to control the server using the web browser way!

    Whilst PowerShell being the most powerful framework in command-line shell for Windows, one should take care to have ample of security measures in place before allowing web based executions.
    Rock _a.k.a._ Jack Daniel

    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    Comment


    • #3
      Re: Windows Server 2012: PowerShell Web Access - Installation / Configuration

      Originally posted by Rock View Post
      Thanks for sharing this valuable piece of information Mary! It'll definitely be helpful for server admins to control the server using the web browser way!

      Whilst PowerShell being the most powerful framework in command-line shell for Windows, one should take care to have ample of security measures in place before allowing web based executions.

      Comment

      Working...
      X