title: Get default printer name from command line?
body: <p>Microsoft Windows XP comes with a VBS script to manage local and network printers from the command line:</p>
  
  <p>To Get the default printer details from command line:</p>
  
  <pre><code>cscript C:\windows\system32\prnmngr.vbs -g
  </code></pre>
  
  <p>To Get the list of printers added to the system from Windows command line:</p>
  
  <pre><code>cscript C:\windows\system32\prnmngr.vbs -l
  </code></pre>
  
  <p>Is there any equivalent commands for Windows 7? I just need to get the default printer details and get the list of printers attached to the system.</p>