• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Net Use with password and username

#1
Hey,

I was bored and decided to create a batch file that Maps a share that requires a username and password. I can't seem to find out the correct syntax for this.:confused:

I think it should look something like this:
net use H: \\computername\Sharename /USER:Username

What syntax do I use for automatically entering the password?
Is this right?


~Dan
 

madmatt

Bow Down to the King
Political User
#2
C:\Documents and Settings\matt>net share \help
The syntax of this command is:


NET SHARE
sharename
sharename=drive:path [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents| Programs | None ]
sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents | Programs | None]
{sharename | devicename | drive:path} /DELETE

Doesn't appear to be such a syntax.
 

JJB6486

Retired Mod
Political User
#5
You dont need to put the workgroup in there. That is the DOMAIN name needed only if your connecting to a Win2k domain and using your Active Directory username/password. You dont need it when only on a workgroup.

JJB6486
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,962
Messages
673,240
Members
89,015
Latest member
loxioalix