Batch file setup for network printers

M

Mike_Bee

I would like to know the proper command line for having a
logon script of batch file setup network printer
automatically. I have found some information on this,
but I am having trouble executing the command line.


This is the command line that I was given.
Command Line: rundll32 printui.dll,PrintUIEntry /?
 
B

Bill Stewart

Mike_Bee said:
I would like to know the proper command line for having a logon script of
batch file setup network printer automatically. I have found some
information on this, but I am having trouble executing the command line.

This is the command line that I was given.
Command Line: rundll32 printui.dll,PrintUIEntry /?

Hi Mike,

That command will simply display the help dialog for PrintUIEntry. As you
can see, there's lots of things you can do.

But it does lead to a question. On Windows 2000 and later, you can
establish "per-machine printers": Network-attached printers that appear no
matter who is logged onto the machine. Will that solve your problem?

Bill
 
G

Guest

I would like to have some sort of logon script for
network mapping, printers, and default desktop load upon
a users logon. If anything ever changes I can just apply
it to the script. So my questions is what is the proper
command line to do the printers
I have a Batch file for the network mappings already. So
My next step is the printers.

Also I am unable to get my logon script to run. Is there
a special naming scheme.
 
M

Mike_Bee

Here is the command line that I am running from CMD
Prompt:

rundll32
printui.dll,PrintUIEntry /ga /c\\servername\sharename /n\\
test

There is something wrong here.
 
M

Mike_Bee

I all tried

rundll32 printui.dll,PrintUIEntry /c\\IP-address /n\\ip-
addres\printer

The error I am getting now is access denied
 
M

Mike_Bee

Still getting ACCESS DENIED
I am not on as an Admin when I run this command line. My
goal is to run this in a logon script, but I am also
having trouble getting my logon scripts to work.

Please assist
-----Original Message-----
rundll32 printui.dll,PrintUIEntry /il /c\\[remote computer netbios name]

Ed
 
E

Ed Siff

See
http://groups.google.
com/groups?
q=power+user+add+printer&hl=en&lr=&ie=UTF-8&oe=UTF-8&newwindow=1&safe=off&selm
=3b3ad8ce.1238530%40news.supernews.com&rnum=7

"The user needs to be a member of the local Power Users or
Administrators group on the workstation. In User Manager, add the
global group Domain Users from your domain to the local group Power
Users (or Administrators), assuming your security policies would allow
such."

Ed


"Mike_Bee" said:
Still getting ACCESS DENIED
I am not on as an Admin when I run this command line. My
goal is to run this in a logon script, but I am also
having trouble getting my logon scripts to work.

Please assist
-----Original Message-----
rundll32 printui.dll,PrintUIEntry /il /c\\[remote computer netbios name]

Ed

 
M

Mike_Bee

Thank You for all of your help. I got it to work, the
only thing that I do not like about the script is that
when it runs it shows a window that it is searching for
it. I would like it to be a quite setup. Also I tried
using the default printer switch and it does not work
until it runs a second time. Is there a way to resolve
these two issues I am having.
-----Original Message-----

See
http://groups.google.
com/groups?
q=power+user+add+printer&hl=en&lr=&ie=UTF-8&oe=UTF- 8&newwindow=1&safe=off&selm
=3b3ad8ce.1238530%40news.supernews.com&rnum=7

"The user needs to be a member of the local Power Users or
Administrators group on the workstation. In User Manager, add the
global group Domain Users from your domain to the local group Power
Users (or Administrators), assuming your security policies would allow
such."

Ed


Still getting ACCESS DENIED
I am not on as an Admin when I run this command line. My
goal is to run this in a logon script, but I am also
having trouble getting my logon scripts to work.

Please assist
-----Original Message-----
rundll32 printui.dll,PrintUIEntry /il /c\\[remote computer netbios name]

Ed

I all tried

rundll32 printui.dll,PrintUIEntry /c\\IP- address /n\\ip-
addres\printer

The error I am getting now is access denied

-----Original Message-----
I would like to have some sort of logon script for
network mapping, printers, and default desktop load upon
a users logon. If anything ever changes I can just
apply
it to the script. So my questions is what is the proper
command line to do the printers
I have a Batch file for the network mappings already.
So
My next step is the printers.

Also I am unable to get my logon script to run. Is
there
a special naming scheme.

-----Original Message-----

I would like to know the proper command line for
having a logon script of
batch file setup network printer automatically. I
have found some
information on this, but I am having trouble
executing
the command line.

This is the command line that I was given.
Command Line: rundll32 printui.dll,PrintUIEntry /?

Hi Mike,

That command will simply display the help dialog for
PrintUIEntry. As you
can see, there's lots of things you can do.

But it does lead to a question. On Windows 2000 and
later, you can
establish "per-machine printers": Network-attached
printers that appear no
matter who is logged onto the machine. Will that solve
your problem?

Bill


.

.

.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top