Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Can someone give me an example of how to automatically map to a specific network printer through a logon script? Thanks.

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

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

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

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?

![]() |
![]() |
![]() |

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