Solved

Configuring Mapped drives on Windows 7 with a 2003 Domain controller

Posted on 2014-04-16
4
208 Views
Last Modified: 2014-05-13
Hi,

Admittedly, our domain controller is old and will need to be upgraded eventually, but it's the best I have for now. I'm running into an issue where the script will not run and map drives to all PC's that log onto the domain. Right now I have it configured with a .bat file in the sysvol\{Domain}\scripts folder. Here is the script that I'm running.

net use x: /delete /y
net use x: "\\PCNAME\Shared Folder"

I would appreciate any tips to get these mapped drives to work with these Windows 7 PC.

Thanks in advance!
0
Comment
Question by:Whah
4 Comments
 
LVL 20

Accepted Solution

by:
Lazarus earned 167 total points
Comment Utility
It might work better for you with a VBS script:

Dim Network
Set Network = CreateObject("Wscript.network")

Network.MapNetworkDrive "X:", "\\PCNAME\Shared Folder"  ,true
0
 
LVL 23

Assisted Solution

by:Thomas Grassi
Thomas Grassi earned 167 total points
Comment Utility
msg * "Welcome to OUR Domain"
net use H: "\\192.168.1.24\users\%username%" /persistent:yes
msg * "Home Folder now mapped"

Also make sure the user accounts has the name of your batch file set correctly

The above works on all platforms
Windowx XP
Vista
Windows 7
Windows 8

I would try using the ipaddress in place of the network name
0
 
LVL 77

Assisted Solution

by:Rob Williams
Rob Williams earned 166 total points
Comment Utility
It should work fine.  Try adding a pause statement at the end so that you can see if there are any reported errors when it runs.

You use \\PCName\Sahred Folder.  I assume PCName is the server and not the PC itself?
Also should you have any spaces in the name you need quotes.

The following recreates the mappings at every login.

Net Use /persistent:no
Net Use * /delete
Net Use X:  "\\Server Name\Share Name1"
Net Use Y:  \\ServerName\ShareName2
Net Use Z:  \\123.123.123.123\ShareName3
0
 
LVL 11

Expert Comment

by:hecgomrec
Comment Utility
Please try to see if you can access the shared folder via Windows Explorer.

If you can't, maybe you are not capable to see the server either.

Run the basics, try to ping the server by ip and dns to see if any works.  Run the commands manually in one of the stations to see which error you get.  Troubleshoot as needed and try the script again.

Most likely you need to enable Network discovery.  If the network discovery setting on your computer is set to Off, you won't see other computers and devices on the network. To change your network discovery setting, follow these steps:

1. Open Advanced sharing settings by clicking the Start button and then clicking Control Panel. In the search box, type network, click Network and Sharing Center, and then, in the left pane, click Change advanced sharing settings.

2.Click the chevron Picture of the chevron icon to expand the current network profile.

3.Click Turn on network discovery, and then click Save changes. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

Try it and let us know.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

FIPS stands for the Federal Information Processing Standardisation and FIPS 140-2 is a collection of standards that are generically associated with hardware and software cryptography. In most cases, people can refer to this as the method of encrypti…
The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
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.

771 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

14 Experts available now in Live!

Get 1:1 Help Now