Computing.Net > Forums > Windows NT > Adding a Printer in logon script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Adding a Printer in logon script

Reply to Message Icon

Name: Scott
Date: July 18, 2000 at 07:44:16 Pacific
Comment:

Can someone give me an example of how to automatically map to a specific network printer through a logon script? Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Mike
Date: July 18, 2000 at 08:13:06 Pacific
Reply:

If your Windows** NT** computer logs on to a domain, you can use the NET USE command in Windows NT logon scripts to set up connections to network drives and printers. See the Windows NT documentation for more information on setting up logon scripts.

To assign a drive letter to a network path using the Microsoft** NET USE command

1. At a DOS prompt, enter the NET USE command with the appropriate options.
The options for mapping drives with NET USE are the following:

NET USE [device name | *] [\\servername\volume[\path] [password | *]] [/USER:username] [[/DELETE] | [/PERSISTENT:{YES |NO}]]

Example

To map drive G: to the directory USERS\HOME on volume SYS: of the server called HOMESERVER, enter the following:

NET USE G: \\homeserver\sys\users\home

works the same way with printers


0

Response Number 2
Name: Scott
Date: July 18, 2000 at 08:22:00 Pacific
Reply:

Thanks Mike, but something isn't working. I know how to "net use" to shared directories....but to automatically add a printer when someone logs on? you wouldn't even use a letter would you? This is what I tried...
net use p: \\printserver\networkedprinter
it didn't work. Did I get the syntax wrong??
Thanks


0

Response Number 3
Name: Mike
Date: July 18, 2000 at 08:48:47 Pacific
Reply:

I am sorry for the bad directions you still use the net use command but I forgot to tell you that you must capture the port the printers are on for example

NET USE LPT5 \\server\queue /persistent:yes


0

Response Number 4
Name: BobP
Date: July 18, 2000 at 13:39:11 Pacific
Reply:

Just to add to this discussion - what is the syntax for the devicename when a printer is hanging off a server that is using a multi port printserver?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Adding a Printer in logon script

Adding Networked Printer in Logon.bat script www.computing.net/answers/windows-nt/adding-networked-printer-in-logonbat-script/11114.html

Userpermissions in Logon scripts www.computing.net/answers/windows-nt/userpermissions-in-logon-scripts/8370.html

Setting printer in Login Script www.computing.net/answers/windows-nt/setting-printer-in-login-script/3578.html