Notifications

51 views

Description

Symptoms

Sometimes the windows servers may fail to discover with below error message:

""

gwmi : Could not get objects from namespace root\default. Not foundAt <<MID_Server_Agent_Folder_Path>>\agent\scripts\PowerShell\WMIFetch.psm1:363char:20+ $reg = gwmi -list -computer $computer -credential $cred-namespace r ...+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : ObjectNotFound: (:) [Get-WmiObject], ManagementException+ FullyQualifiedErrorId : INVALID_NAMESPACE_IDENTIFIER,Microsoft.PowerShell.Commands.GetWmiObjectCommandYou cannot call a method on a null-valued expression. 

""

Release

All.

Cause

The issue is because the namespace "root\default" is not available on the target devices when we run PS commands. You can get this exact namespace on the related input ECC queue.

Resolution

Request the customer to log in to the target device with the credentials same as in credentials tables and then run the below sample PS script in PS editor.

""

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

""

  • Make sure the intended namespace is returned. If not work with their admin team why the namespaces are not returned.
  • One of the other issues might be related to PowerShell version 2.0. So, please try to use a higher version of less than 6.

Article Information

Last Updated:2019-08-02 20:48:36
Published:2019-07-21