Powershell web access #powershell
Install-WindowsFeature –Name WindowsPowerShellWebAccess -IncludeManagementTools -Restart
Install-PswaWebApplication -UseTestCertificate
After Windows PowerShell Web Access is installed and the gateway is configured, users can open the sign-in page in a browser, but they cannot sign in until the Windows PowerShell Web Access administrator grants users access explicitly
Add-PswaAuthorizationRule -ComputerName * -UserName * -ConfigurationName *
TheConfigurationName
must point to existing configuration session.
Create in.txt
[NewRequest]
Subject="CN=<server.computer.domain>"
RequestType=Cert
certreq.exe -new in.txt
Its added to Remote Desktop store, move it to the Personal certificate so that IIS can see it.
# Via certutil, show Personal store, will also show the one created with UseTestCertificate
certutil -viewstore my
# Via Cert drive
ls Cert:\LocalMachine -Recurse | ? Subject -like '*server*'
# Move to Personal store
mv 'Cert:\LocalMachine\Remote Desktop\20E7C788D547FE6DEC7B4A420F55C2B352BF5EF2' Cert:\LocalMachine\My