Tuesday, April 11, 2017
How to set Citrix default printer with a logon script.
powershell.exe -Command "$printer = get-wmiobject -class win32_printer | select -first 1 ; $printer.setdefaultprinter()"
This will get a list of printers from the user session and make the first one default. The first printer in the list is the default on the local computer outside of Citrix. I don't know why the local default is always first in the list but that appears to be the case.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment