title: Unable to get WMI object via GETOBJECT("winmgmts:" )
body: <p>I'm stumped and can't seem to find a definitive answer.  I'm trying to get a list of network adapters via WMI.  The command I've been using has been working fine for almost all the workstations in our office with no problem.  Yesterday, problem.  One machine fails out.  Since its run directly on the users machine, I don't have to explicitly put their machine name and thus using just the "." for local machine.  Then, I don't care about the "who", so there's no impersonation going on either.  The user should be able to query their own equipment resources.  What I WAS using was...</p>
  
  <pre><code>oWMIService = GETOBJECT("winmgmts:\\.\root\cimv2")
  oItems = oWMIService.ExecQuery("Select * from Win32_NetworkAdapter",,48)
  </code></pre>
  
  <p>From what I've found, some places say to remove the "\" for the machine path reference.  If I do that, MY machine fails, still no result on the other machine in question.  So, I've even tried just going to the root for the service and THAT fails too.</p>
  
  <pre><code>oWMIService = GETOBJECT("winmgmts:\\.")
  </code></pre>
  
  <p>The actual error I'm getting is...</p>
  
  <pre><code>Error Code: 0x800401ea: Moniker cannot open file.
  </code></pre>
  
  <p>I've done some searching on this moniker error, but don't know how to get resolution.</p>