Power cli commands for administration do not work for a couple of pools after horizon version is upgraded from 7.0 to 7.7. Rest of the pools it works as expected
That seems to be a known issue, see Get-machinesummary throwing error and exists script after upgrade to esx 6.7 on Desktop Pools, worke...
You might try the bypass documented in KB2148374
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Unless you are aiming to get only answers from people that own a crystal ball, you could give some more details.
What commands, what error messages...?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Apologies.. The below commands are run with the error messages.
Get-HVMachine and Get-HVMachineSummary from the module Vmware.Hv.Helper
The commands Get-HVMachine and Get-HVMachineSummary return such errors as below:
<**************************************************************************************************************************>
PS C:\> Get-HVMachine
Exception calling "QueryService_Create" with "2" argument(s): "ExceptionType : VMware.Hv.EntityNotFound
ErrorMessage : Could not find user or group in AD
Id : VMware.Hv.UserOrGroupId"
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:7415 char:5
+ $queryResults = $query_service_helper.QueryService_Create($servic ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : VimException
..............................
Get-HVMachine: No Virtual Machine(s) Found with given search parameters
PS C:\> Get-HVMachineSummary
Exception calling "QueryService_Create" with "2" argument(s): "ExceptionType : VMware.Hv.EntityNotFound
ErrorMessage : Could not find user or group in AD
Id : VMware.Hv.UserOrGroupId"
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:7415 char:5
+ $queryResults = $query_service_helper.QueryService_Create($servic ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : VimException
..............................
Get-HVMachineSummary: No machine(s) found with given search parameters
<**************************************************************************************************************************>
That seems to be a known issue, see Get-machinesummary throwing error and exists script after upgrade to esx 6.7 on Desktop Pools, worke...
You might try the bypass documented in KB2148374
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks for the KB. I will check and keep this thread updated.Having said that,if there was user rights issue does it work in other pools.How does it fail in only 2 pools and work in others?
It seems to be related to the type of AD group.
Not saying that this is the issue in your case, but the error and type of failure look familiar.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Tanks a ton. This resolved the issue.