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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with NET USE

Status
Not open for further replies.

jim532

MIS
Nov 28, 2005
98
US
I haven't used the NET USE command line for quite some time and have used it very little.
I want to make a batch file that will connect to a share on a server. I need the command line to include the username and the password but I don't know the context. I've done some searching but haven't found anything that works, can someone show me an example of the context for putting both username and password in the command line.

thanks,
 
Code:
NET USE W: \\Server\share /persistent:no /USER:Domain\username password
 
net use /? is quite helpful as well.

I'm Certifiable, not cert-ified.
It just means my answers are from experience, not a book.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top