Solved

batch login

Posted on 2010-08-25
4
629 Views
Last Modified: 2013-11-11
Hello,

I am trying to get a batch file to login to a network drive with a special username / password.

This is what I have

echo y | net use g: /delete
net use g: \\rtb2003\apps
net user scc
net password ****

it isnt working for some reason. Any help would be great.

Thanks
Matt
0
Comment
Question by:MattBamm
  • 2
4 Comments
 
LVL 6

Expert Comment

by:fluk3d
ID: 33519913
net use w: \\myserver\fileshare /user:MyID MyPassword
0
 
LVL 4

Accepted Solution

by:
GO-87 earned 500 total points
ID: 33519922
Try:
echo y | net use g: /delete
net use g: \\rtb2003\apps  ****  /user:scc
 
0
 

Author Closing Comment

by:MattBamm
ID: 33519940
Thanks
0
 
LVL 4

Expert Comment

by:GO-87
ID: 33519954
Thank you for the points, Matt
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now