Am I doing something wrong in my syntax, or do I have other issues?
More about :printui dll rename
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]
-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
This posting is provided "AS IS" with no warranties, and confers no rights.
"Gordon Price" <gordon(thorn)@thomashacker.com> wrote in message
> 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?