WebApp - General Error - System.Management.ManagementException: Invalid namespace
Symptom
PSMDU018E Dispatcher error: [ConnectionComponentController :: Main -> System.Management.ManagementException: Invalid namespace
Environment
11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;12.7;13.0;13.2;13.1 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Privileged Session Management (PSM) PSM
Cause
Resolution
1) Using PowerShell try executing the following:
gwmi -query "select * From Win32_Process"
2) Using PowerShell try executing the following:
([System.Management.ManagementObjectSearcher]::new("select * From Win32_Process")).get()
3) Do the same again as above, but running as the Shadow user. This is to check if there is some security restriction with the shadow user preventing the namespace from being seen that is not in place with the logged in admin user.
If the first command is resulting in the following error or similar:
"gwmi : Invalid namespace "root\cimv2"
It indicates that system has some corruption with the WMI. This is considered a Window issue and Microsoft would be the best resource to help understand why WMI is not functioning correctly.
With that said, here is a tech community post in Microsoft's forum that could help troubleshoot the WMI issue.
> https://techcommunity.microsoft.com/t5/ask-the-performance-team/wmi-rebuilding-the-wmi-repository/ba-p/373846