title | date | author | layout | classes | permalink | tags | ||
---|---|---|---|---|---|---|---|---|
PS: Web Access |
2016-05-30 04:44:00 +0000 |
gerryw1389 |
single |
wide |
/2016/05/ps-web-access/ |
|
Windows PowerShell Web Access acts as a Windows PowerShell gateway, providing a web-based Windows PowerShell console that is targeted at a remote computer. It enables IT Pros to run Windows PowerShell commands and scripts from a Windows PowerShell console in a web browser, with no Windows PowerShell, remote management software, or browser plug-in installation necessary on the client device. All that is required to run the web-based Windows PowerShell console is a properly-configured Windows PowerShell Web Access gateway, and a client device browser that supports JavaScript and accepts cookies.
-
First run:
Install-WindowsFeature WindowsPowershellWebAccess
- This installs IIS, .NET v4.5, and a new PS Module
-
Next you run:
Install-PSWAWebApplication -UseTestCertificate
- This installs creates a 90 day test cert, you are highly advised to point to your own signed cert instead.
-
Next you run:
Add-PSWAAuthorizationRule -Computername Computername -Username Domainuser
- This allows a user to control a remote computer.
-
Next you run:
Add-PSWAAuthorizationRule * * *
- This allows you to have full control. Typically not what you want, but it's just for testing.
-
You should now be able to open up a browser and use it to run powershell on any machine in your network you have access to.
-
I just scratched the surface of this, but will continue to look into how it works.