Link to home
Start Free TrialLog in
Avatar of Mike Caldwell
Mike CaldwellFlag for United States of America

asked on

Default Printer Selection Changes Upon Restart

SOny Vaio notebook with WIN XP Pro; Brother printer installed as a network printer on another PC on the network, and an HP inkjet connected with that same PC on the network.

I have the Brother selected as the default printer, but if I reset the notebook it goes back to the HP inkjet as the default printer.  All is fine if I go to Control Panel and change, but is very irritating to do so every boot up.
Avatar of watyeag
watyeag

Could this be a user rights issue. Do you have administrator rights on your laptop? Even that sounds wrong though, I thought even a limited user could set a default printer.
Avatar of Mike Caldwell

ASKER

I am the only user on the entire network, so administrator of everything.
ASKER CERTIFIED SOLUTION
Avatar of sai2480
sai2480
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Open notepad and copy and paste the following

'Beginning
'-----------------------------------------------------------------------
Option Explicit
Dim objPrinter
Set objPrinter = CreateObject("WScript.Network")
objPrinter.SetDefaultPrinter "Printer Name"
'------------------------------------------------------------------------
'end

Change Printer Name to the name of your printer, go to "Start", "Settings", "Printers and Faxes" copy the name exactly as it appears but do not include any status messages such as ready. Go to "File", "Save As..." and enter an "default.vbs", be sure to include the quatation marks otherwise windows adds a txt extension at the end.

Copy the file into your startup folder in the Start Menu, each time you logon the printer will be changed to your default printer

This script assumes your printer is connected localy if this is not the case add \\servername\ before the printer name.

example:
objPrinter.SetDefaultPrinter "\\mycomp\Printer Name"

FlyBoy97
Actually, I went back and just reimaged the drive and the problem went away, but I accepted this answer as a good solution, I just didn't happen to need it.  Sorry for the delay in closing out.