VMware Cloud Community
SS73
Contributor
Contributor

PowerCLI 6.5 Error when running Connect-HVServer

Hello,

Looking for insight on the this error.  Trying to connect from the connection server (v7.1).  Please post a reply if you have encountered this scenario. 

Issue occurs for mutliple IDs from a desktop or directly on the connection server.

TIA

PowerCLI C:\> Connect-HVServer -Server xxxx.xxxx.xx

Connect-HVServer : ExceptionType : VMware.Hv.EntityNotFound

ErrorMessage : Could not find user or group in AD

Id : VMware.Hv.UserOrGroupId

At line:1 char:1

+ Connect-HVServer -Server xxxx.xxxx.xx

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Connect-HVServer], Exception

    + FullyQualifiedErrorId : System.Exception,VMware.VimAutomation.HorizonVie

   w.Commands.Cmdlets.ConnectHVServer

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

Have you already tried by passing a User and Password parameter?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Jeff_A
Contributor
Contributor

This error can be caused by some AD groups with SID history.  Here is how you can check for this yourself and resolve the issue:

On the connection server your trying to connect to using connect-hvserver go into the logs directory at:

C:\ProgramData\VMware\VDM\logs

Locate the debug-yyyy-mm-dd-nnnn file that has this line:

Cannot get domain base DN by SID, copy the SID

Open PowerShell and run this command, substituting the sid found:

Get-ADObject -Filter {(SIDHistory -eq "S-1-5-21-nnnnnnnnn-nnnnnnnnnn-nnnnnnnnnn-nnnnn") }

In the DistinguishedName, you will find the AD Group name. 

Now, you need to remove the SID History from that AD group.

One way of doing this:

https://itfordummies.net/2015/12/09/remove-sidhistory-powershell/

That should resolve the issue

Reply
0 Kudos