Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Printing / Faxing / Scanning > Re: Using a script to set the default printer at start up after adding it

Reply
Thread Tools Display Modes

Re: Using a script to set the default printer at start up after adding it

 
 
Alan Morris [MSFT]
Guest
Posts: n/a

 
      10-28-2009
use prnmngr.vbs in system32\printing_admin_scripts\en-us to set the default
printer.

You can copy this file to system32 so it's in the path.


--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"SlickRCBD" <> wrote in message
news:861aa19b-8076-4f97-8304-...
> How do I set the default printer using a batch file? Due to problems
> with a win98se printer share that ONLY happens with Vista 64 HP, I
> need to reinstall the printer every time I reboot. With help in
> previous posts, I have the following technically two-line batch file
> so far:
>
>
> rundll32 printui.dll,PrintUIEntry /dl /n "hp812c" /c\\GATEWAY
> rundll32 printui.dll,PrintUIEntry /if /b "HP812c" /c\\GATEWAY /f
> "%windir%\inf\ntprint.inf" /r "\\Slickswintel\hp812c" /m "HP DeskJet
> 812C"
>
>
>
>
> I need a final line to set the newly created HP812C to be the default
> printer, but can't figure out how to do so from the help file I get
> from
> rundll32.printui.dll.PrintUIEntry /?
>
>
> Could somebody please propose what the command should look like? This
> is my first ever attempt at scripting printer management. The printer
> is shared as hp812c on a computer called slickswintel that's been
> happily running win98SE for a decade. The Vista 64 home premium
> computer is called gateway since I feared that slicksgateway was too
> long and was why the win98se machine crashed when trying to access the
> gateway shares. Turns out I was wrong, but never changed it back...



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Default Printer to Stay LMI Windows Vista Hardware 0 01-09-2008 04:14 AM
Printer goes off line with restart John Windows Vista Hardware 2 11-04-2007 11:01 PM
RESTORE DEFAULT START PROGRAMS WINDOWS VISTA intheshushagain Windows Vista Performance 0 09-29-2007 12:23 PM
Adding file to Start Menu Alex H Windows Vista Installation 1 07-30-2007 09:43 PM
Adding Network Printer Sam Windows Vista Administration 1 06-09-2007 03:20 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59