Sign in with
Sign up | Sign in
Your question

printui.dll and rename

Tags:
  • PDF
  • Rundll32
  • DLL
  • Windows XP
Last response: in Windows XP
Share
Anonymous
July 6, 2004 2:56:30 PM

Archived from groups: microsoft.public.windowsxp.print_fax (More info?)

I am trying to use printui.dll to rename a local printer. I have tried a
couple of things, with different errors, including

rundll32 printui.dll,PrintUIEntry /Xs /n "PDF Writer" name "PDF"
&
rundll32 printui.dll,PrintUIEntry /Xs /n "PDF Writer" /n "PDF"

Am I doing something wrong in my syntax, or do I have other issues?

Thanks,
Gordon

More about : printui dll rename

Anonymous
July 6, 2004 9:12:58 PM

Archived from groups: microsoft.public.windowsxp.print_fax (More info?)

if all the clients are XP you can use the WMI scripts to accomplish this.
prn*.vbs scripts are located in system32 on Pro installs.

prncnfg -x -p printer -z "new printer"


C:\>prncnfg /?Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Usage: prncnfg [-gtx?] [-s server][-p printer][-z new printer name]
[-u user name][-w password][-r port name][-l location]
[-m comment][-h share name][-f sep file][-y datatype]
[-st start time][-ut until time][-i default priority]
[-o priority][<+|->shared][<+|->direct][<+|->hidden]
[<+|->published][<+|->rawonly][<+|->queued][<+|->enablebidi]
[<+|->keepprintedjobs][<+|->workoffline][<+|->enabledevq]
[<+|->docompletefirst]
Arguments:
-f - separator file name
-g - get configuration
-h - share name
-i - default priority
-l - location string
-m - comment string
-o - priority
-p - printer name
-r - port name
-s - server name
-st - start time
-t - set configuration
-u - user name
-ut - until time
-w - password
-x - change printer name
-y - data type string
-z - new printer name

-? - display command usage
Examples:
prncnfg -g -s server -p printer
prncnfg -x -s server -p printer -z "new printer"
prncnfg -t -p printer -l "Building A/Floor 100/Office 1" -m "Color Printer"
prncnfg -t -p printer -h "Share" +shared -direct
prncnfg -t -p printer +rawonly +keepprintedjobs
prncnfg -t -p printer -st 2300 -ut 0215 -o 1 -i 5

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

"Gordon Price" <gordon(thorn)@thomashacker.com> wrote in message
news:eEWiQK4YEHA.3804@TK2MSFTNGP10.phx.gbl...
> I am trying to use printui.dll to rename a local printer. I have tried a
> couple of things, with different errors, including
>
> rundll32 printui.dll,PrintUIEntry /Xs /n "PDF Writer" name "PDF"
> &
> rundll32 printui.dll,PrintUIEntry /Xs /n "PDF Writer" /n "PDF"
>
> Am I doing something wrong in my syntax, or do I have other issues?
>
> Thanks,
> Gordon
>
>
!