I am looking for a way to pull the name of the default printer that is installed on a workstation.
I was able to use a wmi query to pull that info…
q: (if property "Default" of it as string contains "True" then property "Name" of it as string else nothing) of select objects ("Name, Default from win32_Printer") of wmi
This works ok and returns the value as “Name=PrinterName”
I was wanting to just pull the actual printer name (Not the “Name=”) but I was having trouble trying to parse that out. Anyone have any ideas on how to do that?
Also if there is a better way to accomplish this please let me know.
Q: (if property “Default” of it as string contains “True” then string value of property “Name” of it as string else nothing) of select objects (“Name, Default from win32_Printer”) of wmi
You have to do the standard “BigFix Two-Step”: run an Action that writes out the results of “cscript prnmngr.vbs -l” to a file or the Registry or a Client Setting and then read the result in using an Analysis.