Discussion:
rundll32 printui,PrintUIEntry with SP2
(too old to reply)
DLN
2004-08-23 22:16:55 UTC
Permalink
Has anyone tested XP Service Pack 2 with rundll32 printui,PrintUIEntry for
scripting printer installs? Have there been any problems?

Thanks.
Bruce Sanderson
2004-08-29 00:16:18 UTC
Permalink
Yes - tested; No - no problems, with appropriate Windows Firewall settings.

Are you encountering a specific issue, or is this a general question?
--
Bruce Sanderson MVP

It is perfectly useless to know the right answer to the wrong question.
Post by DLN
Has anyone tested XP Service Pack 2 with rundll32 printui,PrintUIEntry for
scripting printer installs? Have there been any problems?
Thanks.
DLN
2004-08-29 04:33:54 UTC
Permalink
Post by Bruce Sanderson
Yes - tested; No - no problems, with appropriate Windows Firewall settings.
Are you encountering a specific issue, or is this a general question?
I couldn't get PrintUIEntry to work during my first try ever to use it and
unfortunatley, I was trying on SP2 so I thought (hoped?) maybe that was the
problem.

I've tried adding a network printer to a single user account as well as
globally to every user and both failed. I can get the PRINTUI command to
set the default printer, print a test page, and open the queue (opening the
queue only working from the command line, not a batch job).

Running the following to add the printer for a single user:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /n\\server\printqueue

gave the error message, "Operation could not be completed". I can add the
printer through the add printer wizard.

Running the following to add the printer globally,

RUNDLL32 PRINTUI.DLL,PrintUIEntry /ga /n\\server\printqueue

gave the error message "unable to add the per machine printer connection.
Access is denied". I was running this command from a user domain account
with only user privileges.

I'm concerned that network authentication may be involved. That's part of
the reason why, in another thread you responded to, I asked about disabling
authentication for print queues.

I appreciate any suggestions.

Thanks.
Post by Bruce Sanderson
--
Bruce Sanderson MVP
It is perfectly useless to know the right answer to the wrong
question.
Post by DLN
Has anyone tested XP Service Pack 2 with rundll32
printui,PrintUIEntry for scripting printer installs? Have there been
any problems?
Thanks.
Loading...