When I was using below line in my Script I was getting the error
$licensePool= gwmi -class"Citrix_GT_License_Pool"-Namespace"ROOT\CitrixLicensing"-comp"192.168.70.131"-ErrorAction Stop
---------------------------------------------------------------------------------------
ERROR
Get-WmiObject :
At C:\Windows\system32\jokermore.ps1:10 char:20
+$licensePool= gwmi <<<< -class"Citrix_GT_License_Pool"-Namespace"ROOT\CitrixLicensing"-comp"192.168.70.131"-E
rrorAction Stop
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
+ FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
-----------------------------------------------------------------------------------------
I checked for WMI consistency and it came as consistent on server where I was running the script
$licensePool= gwmi -class"Citrix_GT_License_Pool"-Namespace"ROOT\CitrixLicensing"-comp"192.168.70.131"-ErrorAction Stop
---------------------------------------------------------------------------------------
ERROR
Get-WmiObject :
At C:\Windows\system32\jokermore.ps1:10 char:20
+$licensePool= gwmi <<<< -class"Citrix_GT_License_Pool"-Namespace"ROOT\CitrixLicensing"-comp"192.168.70.131"-E
rrorAction Stop
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
+ FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
-----------------------------------------------------------------------------------------
I checked for WMI consistency and it came as consistent on server where I was running the script