getting the default printer from remote computer

Hey,

is there a way to get the default printer from remote computer using powershell ?

if I try using gwmi -class win32_printer -computername <xxxx> i'll get " default : false " on all the printers.

but if I run gwmi -class win32_printer -computername localhost in the local powershell console when I'm connect using rdp I will get the " default : true " on one of the installed printers.

why is that ??

thanks in advance.

July 25th, 2015 6:54pm

There is no such thing. Only a user account can declare a default printer. You cannot use WMI to get a users printer settings. Every user can have a different set of printers and default.

Free Windows Admin Tool Kit Click here and download it now
July 25th, 2015 7:27pm

Even if WMI fails, perhaps this proposal of using the registry in your PowerShell script to get a list of default printers from users on remote machines will bring you forward.

wizend
July 27th, 2015 1:36pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics