WMI to change printer options

  • Thread starter Thread starter Gordon
  • Start date Start date
G

Gordon

I am using this bit of script to rename a printer after install (you just
CAN"T have a printer named 'cutePDF' in a professional environment) and it
works fine.
Set objWMIService =
GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set objWMIPrinter = objWMIService.get("Win32_Printer='cutePDF Writer'")
objWMIPrinter.RenamePrinter ("PDF Writer")
Now what I want to do is also change the resolution (print quality) to
300dpi, change fonts to download softfonts instead of substituting device
fonts, and change the PostScript Output Option to Optimize for Portability.
Obviously a pain to do this manually on every machine.

So, how do I go about doing this? Is there a way to browse the available WMI
controllable options?

Thanks,
Gordon
 
Back
Top