Cool PowerShell stuff in the summer part 2

Print a test page to the default printer is not a very nice thing to be able to do.

But this little WMI printer oneliner is little more work related and can be used to change the default printer of a user.

(Get-WmiObject -Class Win32_printer -Filter “Name=’Microsoft XPS Document Writer’”).SetDefaultPrinter()

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Cool PowerShell stuff in the summer part 2

  1. Pingback: Poweradmse

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>