Login Script, Silent with Drive Checking

Good Morning,

I am trying to create a login script that will map a series of drives, make them persistent. I would like the script to run in such a way that the command window does not appear each time the person logs in. And, if the drives already exist, I would like the script to terminate (checking for all drives first).

Thanks in advance!
WoodraxAsked:
Who is Participating?
 
glenn_1984Commented:
An example only:

After you create the script (i.e. login.bat) open properties and have it run minimized.

login.bat

@echo off
Rem - check for the drives
if not exist f:\*.* net use f:\ \\servername\shared folder name
if not exist g:\*.* net use g:\ \\servername\shared folder name

Unfortunately, you do need to check for each mapped drive.
0
 
Lukasz ChmielewskiCommented:
0
 
WoodraxAuthor Commented:
Thanks a ton!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.