Reply To: set default printer – script

#12745
ConfGen
Keymaster
  • Total Post: 11340
  • Jedi Master
  • ★★★★★★★

As TT stated before the script are run in the System account.
Do you know the registry setting you have to use to set the default printer?
If yes you should try a WDM script like this:

[Version]
Number=DefaultPrinter
Description=Change Printer to default
OS=XP
Category=Other Packages
USE_Pxe=NO


[Script]
CO "XP"
MR "default.reg" "user"
RB

and the default.reg file should look like this:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERxxxxxxxxxxxxxxxxxxxxxx]
“xxxxxxxxxxxxxx”=”xxxxxxxxxxxxxxxxxxx”

Cheers
CG