Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer Script

Status
Not open for further replies.

VLADY218

Technical User
Joined
Feb 7, 2003
Messages
133
Location
US
Hello everyone,

does anyone have a good script for printing in active directory.

I currently need to put a script into the startup of my users to a printer that is attached and shared from a client computer.

This is what i got so far

net use LPT1: \\printerserver\printer name

is this effeciant

thanks
 
I think that is all you need. As in any case test it and see. Possibly use a logoff script to disconnect the printer after each session.

Just a thought.

Hewissa

MCSE, CCNA, CIW
 
hi,
in Resource Kit (or on the web), retrieve the utility

con2prt.exe

and copy it in WINNT\system32

then (see help on con2prt -h), run

con2prt /c \\ServerName\PrinterName

Rather than LPTx, the printer will be named as
the original

bye

 
Although it is not specified, if VLADY uses 9x clients on her network, the con2prt command won't work.

Hewissa

MCSE, CCNA, CIW
 
another option would be defprint there's a c option for"connect" and d option for default printer...

Jeff
 
Thanks for your comments, I have all 2000 clients. What I did was put the printer in the mandatory profiles, (since all computers are in 1 student lab) when I couldnt get the script to work. It seems like it is ok for now. I could not find con2prt for download. Where can I get it.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top