Setting Windows 7 default printer after image.
-
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]
-
I use GPO preferences based on OU or group membership of the machine. Windows XP (with updates) and up support GPO preferences.
-
So you put all the details for the printer in the GPO under computer settings? You don’t use Deploy printer feature (under users)?
I see the default option there, but the admin of the printers seems more. -
I do not use FOG to deploy printers because I have Active Directory and it works better in a Windows environment. I think one of the shortcomings of printer management in FOG is the inability to set the default printer. If someone with .Net/C# programming abilities wants to update the client code, we can talk.
-
i was talking about GPO in windows.
We have over 100 printers and FOG we felt would be fine for smaller installations.