Net use syntax help

PLightstar

Resident Freddy
Joined
Dec 29, 2003
Messages
2,103
Im trying to get a win xp machine to connect to a network printer, which is fine I can use (net use lpt1 \\server2\epson) but im trying to set it up so the username and password will be part of the code, so I won't have to keep putting them in everytime I start the machine.

I have created a .bat file in the start-up folder so that it prompts the user for a username/password but it would be nice if the user did not have to type them in all the time.

Thanks in advance
 

babs

Can't get enough of FH
Joined
Dec 30, 2003
Messages
1,595
Have you tried
Code:
net use persistent:yes
At the bottom of your .bat?
 

Miles_Binck

Fledgling Freddie
Joined
Dec 27, 2003
Messages
113
output from the net use help


Code:
C:\Documents and Settings\Phill>net use /?
The syntax of this command is:


NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [/SMARTCARD]
        [/SAVECRED]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

don't know if any of that is useful
 

Wij

I am a FH squatter
Joined
Dec 23, 2003
Messages
18,404
NET USE M: \\SERVERNAME\SHARE_NAME /USER:DOMAIN_NAME\USER_NAME password

I must type that in 3000 times a day :)
 

Wij

I am a FH squatter
Joined
Dec 23, 2003
Messages
18,404
Please reinterpret the first smilie :)
 

Users who are viewing this thread

Top Bottom