title: How does one get the DACL of a server's printer in Windows?
body: <p>Context: Windows7 64bit, ActiveDirectory, Windows Server 2003</p>
  
  <p>I'm trying to get the code given by Microsoft on their page <a href="http://msdn.microsoft.com/en-us/library/aa390778" rel="nofollow">GetSecurityDescriptor method of the Win32_Printer Class (Windows)</a> to work. I'm a bit curious to know how the double instantiation of winmgmts works out, viz (from their code)</p>
  
  <pre><code>Set objWMIService = GetObject("winmgmts:" _
  &amp; "{impersonationLevel=impersonate, (Security)}!\\" &amp; strComputer &amp; "\root\cimv2")
  
  Set objWMIService = GetObject("winmgmts:")
  </code></pre>
  
  <p>I would have thought that the second instance would clobber the first. This would seem to be borne out by the fact that no matter what server name I put in strComputer, I still get a list of the printers on my computer. </p>
  
  <p>Has anyone had any joy getting the DACL of a server-connected printer using VBScript?</p>