Mapping network driver for all users in domain

Mapping internal or external network as a driver for all users in the domain is quite an easy task. There are different policy, script to work on it. In my view, task scheduler is one of the easiest ways for mapping network as a driver.

Why you need it:

  1. Different users may log-in into the same local workstation for different purposes who may need to access the same network location every time.
  2. Different remote users may use your cloud machine at a time who have to access the same network location at a time.

If you map different network location with different network driver name, then it is reliable and effective for everyone.

How to map:

First open task scheduler, a default available application in Windows 7 & 8, Windows Server 2003 & 2008.

  • Type ” taskschd.msc” from run or you can go to Task Scheduler from (All programs – Accessories – System Tools)

Step 1: You can click on “Create Task” and a new windows will appear as shown in picture below:

Name: Give the appropriate name as “Disk Mapping for all users”

Description: You may provide detail description about your task.

In security options:

Click on “Change user or Group“, then in whichever domain you are, always provider Users in it and it should display as: Builtin\Users

Step 2: Go on next tab, Triggers. Click on New and then it should display as:

Begin the task: At logon

Tick on “Any User” and leave other field as default and press OK

Step 3: Then go to the third tab “Actions

Click new button, then a dialog box will appear as:

Action: Start a program

Program/ script: Point out your batch file where you have mentioned your network location. In my case its on C:\Scripts\logon.bat

Scripts for network location:

Example:
net use h: \\xxxxx\install /PERSISTENT:YES
net use j: \\xxxxx\Data /PERSISTENT:YES

Save as logon.bat from notepad.

Step 4: Leave the tab “Conditions” as default and jump to the last tab “Settings

Unchecked all the option expect “Allow task to be run on demand

Step 5: Click Run on that task, then every users who log-in into that workstation or server now can access the specified network location with specified network driver.
This is very useful way to run any task on demand. You can also schedule restart of your server on off time through it as there are many things that you can run on it.

Hope this blog is informative for you.

Thank you for reading my blog.

Regards,

Udhyan.

Advertisement

3 thoughts on “Mapping network driver for all users in domain

  1. You could certainly see your skills within the article you write.
    The world hopes for more passionate writers
    such as you who aren’t afraid to say how they believe.
    Always follow your heart.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s