I have devised a script that allows you to set default printers for your rooms.
Depending on your environment this can be a copy paste or a little more.
I’m happy to help people adapt the script for their own use.
The script is run as a user logon script (no extra permissions required)
Our ticket information documentation is as below:
[SIZE=12px][FONT=Arial][COLOR=#222222]The script basically completes the following steps: [/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#222222]1) Gets the full localhost computername and removes the DT from the name (SDT015010000 = S015 ) [/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#222222]2) looks at all network printers installed on localhost. it the removes the PR from the name, like above [/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#222222]3) IF the PCCode and the PrinterCode are the same then the script will set the printer as default. [/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#222222]If there are more than one room printer then the script will default to the last printer it finds. If you want to set the other, then you will need to use the manual section of the script to override the setting. [/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#222222]4) The script will now look at local printers [/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#222222]Again the script will default to the last printer it finds if you have more than one. The script does contain a list of “SKIP” printers that we can add printers like CutePDF. Local printers take priority over network printers so a local printer (if connected) will always become the default [/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#222222]5) The script will now run the Manual mappings where we can specify override rules. [/COLOR][/FONT][/SIZE]
[SIZE=12px][FONT=Arial][COLOR=#222222]6) Last is the debugging section. Everything here is already set, but the last two lines of the script can be enabled to display script output when run.[/COLOR][/FONT][/SIZE]
[url=“/_imported_xf_attachments/0/320_DefaultPrinterPickerV1.vbs.txt?:”]DefaultPrinterPickerV1.vbs.txt[/url]