While attempting to open a remote PowerShell session to validate connectivity, you get a Requested Registry Access is not allowed error message. This article describes the troubleshooting steps needed to identify the root cause of the error and fix the issue.
Requested Registry Access is not allowed.
How to Troubleshoot the Issue
First we will check that the credentials used have access to the remote server, then use these credentials to open a remote session using New-PSSession.
- Log onto the remote server using RDP and valid credentials. This checks that the credentials have enough access.
- Open a PowerShell prompt on the GSX Monitor station.
- Enter the following command, and make sure you replace domainname\username by the same credentials used in step 1 and yourservername by the actual server name:
$cred = Get-Credential domainname\username
$s = New-PSSession -ConfigurationName Microsoft.PowerShell -ConnectionUri http://YourServerName:5985/wsman -Credential $cred -Authentication Kerberos
If you successfully validated the remote connection using a different user account having the same rights on the target server, then a corrupted user profile may prevent opening sessions on the remote server. Follow the Microsoft Technet article to delete failing user profile from the target server to fix the problem.