Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Apr 2008
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am trying to set a default printer for all users using a batch file that uses the printer's IP address. I had one for WinXp but it does not work in Win7

    My code is not quite right.

    rundll32 printui.dll,PrintUIEntry /y /r "IP_10.11.9.2"

    Any suggestions.

    Thanks.

    Paul

  2. #2
    New Lounger
    Join Date
    Dec 2009
    Location
    San Diego, CA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know the differences in printui.dll between Windows 7 and Windows XP, but I've done a lot of XP command line printer setting under the guidance of this site.

    Rob's only "set default" example is RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "printer". Can you figure out the name for the printer to use in printui.dll? I never could.

    I might suggest you try <rundll32 printui.dll,PrintUIEntry /y /rIP_10.11.9.2> printui.dll is very fussy about spaces.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •