Jump to content
Welcome to our new Citrix community!
  • 0

Cant access Wmi Citrix licensing namespace > - Get-WmiObject -Namespace "root/CitrixLicensing" -List


Jim Smith1709157654

Question

Ive used a script on one of our domains to report periodical on CCU licence usage.

 

The script users the line;

Get-WmiObject -class “Citrix_GT_License_Pool” -namespace “ROOT\CitrixLicensing” -ComputerName $CitrixLicenseServer

and works OK.

 

When I try this on the second domain I get the error;

 

image.thumb.png.a1862a66e0803252f4bcbac47813c598.png


When I try;

 

 Get-WmiObject -Namespace "root/CitrixLicensing" -List

 

I get the result

 

PS C:\Windows\system32> Get-WmiObject -Namespace "root/CitrixLicensing" -List
Get-WmiObject : Could not get objects from namespace root/CitrixLicensing. Invalid namespace
At line:1 char:1
+ Get-WmiObject -Namespace "root/CitrixLicensing" -List
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [Get-WmiObject], ManagementException
    + FullyQualifiedErrorId : INVALID_NAMESPACE_IDENTIFIER,Microsoft.PowerShell.Commands.GetWmiObjectCommand

 

 

Does anyone know how I can get access the the namespace on the licensing server (is it a missing service association etc?)

 

Many Thanks

 

 

 

 

Link to comment

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...