Windows XP 64 not accepting portmgr.vbs or printui.dll

Posted: 03-02-2006, 10:52 PM
I have used portmgr.vbs and printui.dll to install printers on my networks
since Windows 2000. They have stopped working with the XP x64 version. When
I run the command "cscript %windir%\portmgr.vbs -a -p PrinterPortName -h
192.168.1.23 -t raw -n 9100", the script runs without errors but does not add
the printer port. Since I need the port installed before I can install the
printer driver, my way of automating printer installs does not work. Can
anyone shed some light on how to automate IP printer installs for Windows XP
x64? Thanks.
Reply With Quote

Responses to "Windows XP 64 not accepting portmgr.vbs or printui.dll"

Alan Morris [MSFT]
Guest
Posts: n/a
 
Re: Windows XP 64 not accepting portmgr.vbs or printui.dll
Posted: 03-03-2006, 12:46 AM
use prnport.vbs that comes with XP64 for ports. rundll32 Printui.dll runs
the same on x64.

I'll ask the guy who wrote the reskit tools about the portmgr.vbs. I
suspect since prnadmin.dll is 32bit this will need to load in wow64

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

Usage: prnport [-adlgt?] [-r port][-s server][-u user name][-w password]
[-o raw|lpr][-h host address][-q queue][-n number]
[-me | -md ][-i SNMP index][-y community][-2e | -2d]
Arguments:
-a - add a port
-d - delete the specified port
-g - get configuration for a TCP port
-h - IP address of the device
-i - SNMP index, if SNMP is enabled
-l - list all TCP ports
-m - SNMP type. [e] enable, [d] disable
-n - port number, applies to TCP RAW ports
-o - port type, raw or lpr
-q - queue name, applies to TCP LPR ports
-r - port name
-s - server name
-t - set configuration for a TCP port
-u - user name
-w - password
-y - community name, if SNMP is enabled
-2 - double spool, applies to TCP LPR ports. [e] enable, [d] disable
-? - display command usage

Examples:
prnport -l -s server
prnport -d -s server -r IP_1.2.3.4
prnport -a -s server -r IP_1.2.3.4 -h 1.2.3.4 -o raw -n 9100
prnport -t -s server -r IP_1.2.3.4 -me -y public -i 1 -n 9100
prnport -g -s server -r IP_1.2.3.4
prnport -a -r IP_1.2.3.4 -h 1.2.3.4

Remark:
The last example will try to get the device settings at the specified IP
address.
If a device is detected, then a TCP port is added with the preferred
settings for that

--
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.

"George R. Jenkins" <GeorgeRJenkins@discussions.microsoft.com> wrote in
message news:20F22668-486C-43DA-8443-883D268CEBB1@microsoft.com...
>I have used portmgr.vbs and printui.dll to install printers on my networks
> since Windows 2000. They have stopped working with the XP x64 version.
> When
> I run the command "cscript %windir%\portmgr.vbs -a -p PrinterPortName -h
> 192.168.1.23 -t raw -n 9100", the script runs without errors but does not
> add
> the printer port. Since I need the port installed before I can install
> the
> printer driver, my way of automating printer installs does not work. Can
> anyone shed some light on how to automate IP printer installs for Windows
> XP
> x64? Thanks.

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows mail not accepting my password ameelu Windows Vista Mail 1 06-06-2007 10:09 PM
accepting files post sp2 using windows messenger MikeyP Windows XP Messenger 1 08-23-2004 03:06 PM
Windows Messenger 5.0 Stopped Accepting Messages on LAN Mark Stanley Windows XP Messenger 1 01-08-2004 04:16 PM
windows xp not accepting the port or driver for printer rob38@zoominternet.net Windows XP Device Drivers 1 11-25-2003 07:55 PM
Windows Logon not accepting password biker Windows XP Security & Administration 0 10-29-2003 04:27 PM