www.gsx.com | log in | register

Last update: . Author: Cyril LEROY .

Remote PowerShell Connection Error: Requested Registry Access is not Allowed

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.

Remote PowerShell

Symptoms

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.

  1. Log onto the remote server using RDP and valid credentials. This checks that the credentials have enough access.
  2. Open a PowerShell prompt on the GSX Monitor station.
  3. 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.


Was this article helpful?

2 out of 2 found this helpful




Not finding what you are looking for?

Have more questions? Submit a request