Windows Server 2003
--
Questions
--
Followers
Top Experts
Command to add/update a printer port (our ports are typically the same as the ip)
cscript c:\windows\system32\prnpor
Command to point an existing print queue to that newly added port
cscript c:\windows\system32\prncnf
Error received (only when performing prncnfg.vbs command on the Windows 2003 Print Cluster)
Unable to get configuration for printer queuename Error 0x80041002 Not found
Operation GetObject
Provider CIMWin32
Description
Win32 error code
I found one other post here on Experts Exchange which had a posted solution, however; in this case I'm not using AD to publish, create, or access printers. I've also attempted using the -u (username) and -w (password) flags with these commands and inserted the username and password for the Cluster Service, however; that didn't work either.
All help is appreciated!
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Also, I have read that article and the syntax of the commands are correct and working on the non clustered servers. It is as if the changes are not "sticking" on the 2003 Print Cluster. I even tried to execute the above commands against the individual servers in the cluster and that failed as well.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Thanks again!

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
http://support.microsoft.com/default.aspx?scid=kb;en-us;302539
http://support.microsoft.com/default.aspx?scid=kb;en-us;299631
http://support.microsoft.com/default.aspx?scid=kb;en-us;283370
These are also some great articles that may help, thew fallover article is probably more relevant to your situation
HKLM\Cluster\Resources\%Sp
This may assist me in a work around via the registry if need be, however; I'd really like to be able to configure the print queues via prncnfg.vbs if at all possible.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
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][<+|
[<+|->published][<+|->rawo
[<+|->keepprintedjobs][<+|
[<+|->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
Try using prnport to specify the queuename first
Prnport -a -r PortName [-s ComputerName] [-u UserName -w Password] -h IPAddress
[-o {raw -n PortNumber | lpr}] [-q QueueName] [-m{e | d}] [-i IndexName] [-y
CommunityName] [-2{e | d}]
this is a great ebook that i have, you can keep it lol excuse the profanity in the url it's not my doing :-) http://ot.talkin-shit.net/ebooks/Microsoft/Scripting/How%20to%20Cheat%20at%20Windows%20System%20Administration%20Using%20Command%20Line%20Scripts.pdf
C:\>cscript c:\windows\system32\prnpor
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Server name printcluster01
Port name 10.10.10.200
Host address 10.10.10.200
Protocol RAW
Port number 9100
SNMP Enabled
Community public
Device index 1

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Number of printers enumerated 0
Windows Server 2003
--
Questions
--
Followers
Top Experts
Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).