title: WMI GetObject Permission Denied error
body: <p>I've written a VBScript to connect a Win2k3 SP2 server to multiple Win2k3 + SP2 &amp; WinXP + SP3 machines via WMI in order to query the systems Win32_OperatingSystem and Win32_ComputerSystem classes.</p>
  
  <pre><code>Set loWMISvc = GetObject("winmgmts:{impersonationLevel=impersonate,authenticationLevel=Pkt}\\" &amp; lsStore &amp; "\root\cimv2")
  
  Note: 'lsStore' is the IP address of the computer system I successfully connection too prior. 
  </code></pre>
  
  <p>I then attempt to create a new object to the remote system where it keeps returning a permission denied error (output of script): </p>
  
  <pre><code>21/11/2011 1:17:50 PM     SUCCESS: Established connection to store
  D:\Program Files\SUREfire Systems\Support\MG\QueryStores\QueryStores.vbs(244, 5) Microsoft VBScriptruntime error: Permission denied: 'GetObject'
  </code></pre>
  
  <p>Despite setting the objects <strong>ImpersonationLevel</strong> and <strong>AuthenticationLevel</strong> monikers as exepected, WMI also appears installed correctly on client and remote system. The initial connection to remote system is for the local administrator user also. </p>
  
  <p>What else could be the cause the permission denied error that I'm not seeing? Any help would be appreciated.</p>