Configuring PowerShell secure remoting
These are the steps to configure a Windows™ server to allow RNA to connect via PowerShell remoting over HTTPS
The following commands should be run inside a PowerShell session started with administrator credentials.
- Enable PowerShell
remoting:
Enable-PSRemoting - Create a self-signed HTTPS certificate to secure the encrypted
connection:
$CertThumb = $(New-SelfSignedCertificate -DnsName $env:COMPUTERNAME -CertStoreLocation Cert:\LocalMachine\My).Thumbprint - Enable HTTPS for the WinRM listener using the certificate that you
created:
"winrm create winrm/config/Listener?Address=*+Transport=HTTPS @{Hostname=`"${env:COMPUTERNAME}`"; CertificateThumbprint=`"$CertThumb`"}" | cmd - Permit PowerShell over HTTPS on the Windows firewall:
New-NetFirewallRule -DisplayName "Allow inbound PowerShell SSL TCP 5986" -Direction inbound -LocalPort 5986 -Protocol TCP -Action AllowNote: IBM® Rapid Infrastructure Automation® will use the NTLM / Negotiate authentication mechanism for WinRM connections over HTTPS.
Allowing non-admin users to connect over PowerShell remoting
By default, users that are not administrators or domain admins cannot connect over remote
PowerShell sessions. The PowerShell block will fail with an Access is denied
message even though all authKey components are correct.
- Add the non-admin user to the Remote Management Users builtin group.
- Add the Remote Management Users group to the default SDDL.
- Run this command from an administrator PowerShell
prompt:
winrm configSDDL default - Add the Remote Management Users group and give it Full
Control permission:

- Run this command from an administrator PowerShell
prompt:
- Add the Remote Management Users group to the root of the WMI control tree.
- Run the Computer Management control panel.
- Go to Services and Applications.
- Right click on WMI Control and choose Properties.
- Go to the Security tab.
- Click on Root and then click on the Security button.
- Add the Remote Management Users group, then add Execute Methods and Remote Enable permissions for it.
- Give the Remote Management Users group the following file system
permissions to the C:\Windows\TEMP directory:
