You want to connect to WMI but you get an “Access Denied”. On the remote Server you may see the following Event Log Entry :

Log Name: Application
Source: Microsoft-Windows-WMI
Event ID: 5605
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
The Root\XXXXX namespace is marked with the RequiresEncryption flag. Access to this namespace might be denied if the script or application does not have the appropriate authentication level. Change the authentication level to Pkt_Privacy and run the script or application again.

This is an issue with some WMI Providers : MicrosoftIISv2, Cluster, …

There’s only one workaround as far as I know :

  • Open a UACed command prompt
  • Change the directory to %windir%\System32\Wbem
  • Run “notepad”
  • Open ClusWMI.mof
  • Change [RequiresEncryption] to [RequiresEncryption(FALSE)]
  • Run “Mofcomp.exe ClusWMI.mof”
  • Retry the WMI Query using Wbemtest to see if this fixes the error logging issue.

Good Luck 🙂