PDA

View Full Version : Set Default Printer (W2K)



AMJ2
04-23-2002, 08:42 PM
How can I set the defaul printer for all domain and new local users on a 2000 pc? I need to have the abaility to set a default printer for anyone who logs into the computer for the first time.

Thanks for any feedback.

jdharm
04-23-2002, 09:29 PM
Go to the machine in question, or one representative of said machine, set the default as you want it to be, open regedit.

Drill down to [HK_C_U\Software\Microsoft\Windows NT\CurrentVersion\Windows], highlight it and click on the Registry menu, then "Export Registry File..." and save the file.

Open the file in Notepad (right click the file icon and choose "Edit") and delete all lines in the file except the lines that start with the following:

"Windows Registry..."
"[HKEY_CURRENT_..."
""Device"="\\..."

Add the following line to the logon batch file:

regedit /s \\<servername>\<path>\<filename>.reg

------------------------------------------------------
Explanation:

In [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion] the subkey Devices lists the printers installed on the computer as values and their settings as the values' data. The subkey Windows has a value called "Device" that designates which of the devices mentioned is the default, and the data is a composite of the value name listed under Device and the data listed there for that value.

Josh

"It is easier to stay out than get out."

king_ging
04-24-2002, 10:27 AM
Hi All,

you could create a vbs script with the code below and put it in the group policy, login script

Set wn = WScript.CreateObject("WScript.Network")
wn.SetDefaultPrinter"\\Server\Printer"

AMJ2
06-05-2002, 07:07 PM
Thank you very much!!!! You are my hero.

Now I am releived.