[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 855
  • Last Modified:

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!
0
Woodrax
Asked:
Woodrax
1 Solution
 
Lukasz ChmielewskiCommented:
0
 
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
 
WoodraxAuthor Commented:
Thanks a ton!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now