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
Have you already tried by passing a User and Password parameter?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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