Solved

Logon batch file won't run at every logon

Posted on 2008-10-23
3
343 Views
Last Modified: 2012-05-05
I am trying to map a network drive for the users in my company using a batch file.  We are migrating from a server that was hosting the mapped network drive, to a new server that will be the new host of the mapped network drive.  So I need to keep the same drive letter, with pretty much the same directory structure but just the server name will be changing.  We will not be using the old server name of the old host because it will still be hosting other processes and can't be taken off-line.

Below is an example of the batch file I am trying to run.
net use h: /delete
net use h: \\newsrv\share

I have it added to a test user in Active Directory under profile --> logon script.  When I log the user on, it doesn't delete the old H: drive and re-map the new one, however if I immediately log off and log back on, it maps it.  It doesn't matter how long I wait to logon after I change the batch file (another batch file is listed for all users to map more network drives)  It just seems like it only checks for a batch file at every other logon attempt.

I also tried pushing the batch file using Group Policy by commputer account, and it does map the drives, but all of the drives show up under My Computer with names of Disconnected Network Drive.

Is there a better way to do this?  If so , i'm open to your suggestions.
Thanks!
0
Comment
Question by:jmchristy
  • 2
3 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 22792628
<< I also tried pushing the batch file using Group Policy by commputer account, and it does map the drives, but all of the drives show up under My Computer with names of Disconnected Network Drive.

When they clcik on the mapped drive it should automatically connect.

try it.


 
I hope this helps !
 
0
 

Author Comment

by:jmchristy
ID: 22795045
Thanks for the suggestion!

It does automatically connect, however it still shows as a "disconnected" drive.  Before, it showed up as the "share name on servername H:"  If my users come in and see something that says disconnected drive it will throw them all off   :\

I will keep playing with this, it is looking like the easiest way is to just to it manually....
0
 

Accepted Solution

by:
jmchristy earned 0 total points
ID: 23733377
I ended up just doing this manually by sending out a batch file, no easy way to automate using group policy
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 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

8 Experts available now in Live!

Get 1:1 Help Now