connection lose on domain

220 pts.
Tags:
ASA
Group Policy
Mapped Drive
Network
Server 2003
Switches
VBS
Windows Server 2003
One of our newer domains is having a problem with connection to mapped drives, server, internet, and shared printer connection lose. Once the connection is dropped it will not re-sync or reconnect to mapped drives ect... untill a full reboot is done. We've not done much in the way of changing any settings on the server that I know of. What could be the cause of this issue? We're using WS2003 SE R2, have the server setup to be the DNS/DHCP, have a ADSL modem in bridge mode, ASA5510 as the default gatway, and a switch. the topology goes from ADSL to ASA to switch. at this point everything is connected to the switch. all the computer's on the network are XP PRO SP3. some are brand new some are old and 90% of them are laptops. I'm no policy or VBS expert, but here is another thing I think might be causing a lot of our problems. HERE IS A LOGIN SCRIPT: SERVER NAME HAS BEEN CHANGED TO **SERVER NAME** AND SOME FILE LOCATIONS HAVE BEEN CHANGED TO **FILE NAME** to protect our business. ---------------------------------------------------------- ' NAME: LogonScript.vbs ' ' AUTHOR: Mark D. MacLachlan, The Spider's Parlor ' URL : http://www.thespidersparlor.com ' DATE : 4/10/2003 ' ' COMMENT: Enumerates current users' group memberships in given domain. ' '========================================================================== ON ERROR RESUME NEXT Dim WSHShell, WSHNetwork, objDomain, DomainString, UserString, UserObj, Path Set WSHShell = CreateObject("WScript.Shell") Set WSHNetwork = CreateObject("WScript.Network") Set objDomain = getObject("LDAP://rootDse") DomainString = objDomain.Get("dnsHostName") UserString = WSHNetwork.UserName 'Bind to the user object to get user name and check for group memberships later Set UserObj = GetObject("WinNT://" & DomainString & "/" & UserString) 'Synchronizes the time with Server our NTP Server WSHShell.Run "NET TIME \**SERVER NAME** /set /y" 'Disconnect ALL mapped drives Set clDrives = WshNetwork.EnumNetworkDrives For i = 0 to clDrives.Count -1 Step 2 WSHNetwork.RemoveNetworkDrive clDrives.Item(i), True, True Next 'Give the PC time to do the disconnect, wait 300 milliseconds wscript.sleep 300 'Map drives needed by all 'wshNetwork.MapNetworkDrive "z:", "\**SERVER NAME**users" & UserString,True 'Basically maps home drive 'wshNetwork.MapNetworkDrive "s:", "\**SERVER NAME**common",True 'Now check for group memberships and map appropriate drives For Each GroupObj In UserObj.Groups Select Case GroupObj.Name 'Check for group memberships and take needed action Case "Carefacts Users" 'Group Name wshNetwork.MapNetworkDrive "t:", "\**SERVER NAME****FILENAME**",True 'Case "engineering" 'wshNetwork.MapNetworkDrive "f:", "\**SERVER NAME**engineering",True 'WSHNetwork.SetDefaultPrinter "\servernamesharename" 'Case "management" 'wshNetwork.MapNetworkDrive "f:", "\lhServermanagement",True 'Case "purchasing" 'wshNetwork.MapNetworkDrive "f:", "\lhServerpurchasing",True 'Case "quality" 'wshNetwork.MapNetworkDrive "f:", "\lhServerquality",True 'Case "sales" 'wshNetwork.MapNetworkDrive "f:", "\lhServersales",True 'Case "service" 'wshNetwork.MapNetworkDrive "f:", "\lhServerservice",True Case "administrators" wshNetwork.MapNetworkDrive "t:", "\**SERVER NAME****FILE NAME**",True 'wshNetwork.MapNetworkDrive "m:", "\lhServersales",True 'wshNetwork.MapNetworkDrive "n:", "\lhServerquality",True 'wshNetwork.MapNetworkDrive "o:", "\lhServerpurchasing",True 'wshNetwork.MapNetworkDrive "p:", "\lhServermanagement",True 'wshNetwork.MapNetworkDrive "q:", "\lhServerengineering",True 'wshNetwork.MapNetworkDrive "r:", "\lhServeraccounting",True 'wshNetwork.MapNetworkDrive "s:", "\lhServercommon",True End Select Next 'Remove ALL old printers 'Enumerate all printers first, after that you can select the printers you want by performing some string checks 'Set WSHPrinters = WSHNetwork.EnumPrinterConnections 'For LOOP_COUNTER = 0 To WSHPrinters.Count - 1 Step 2 'To remove only networked printers use this If Statement 'If Left(WSHPrinters.Item(LOOP_COUNTER +1),2) = "" Then 'WSHNetwork.RemovePrinterConnection WSHPrinters.Item(LOOP_COUNTER +1),True,True 'End If 'To remove all printers incuding LOCAL printers use this statement and comment out the If Statement above 'WSHNetwork.RemovePrinterConnection WSHPrinters.Item(LOOP_COUNTER +1),True,True 'Next 'Remove a specific printer 'WSHNetwork.RemovePrinterConnection "\ServerOldHP5si",True,True 'Install Printers 'WSHNetwork.AddWindowsPrinterConnection "\servernameprintername" 'WSHNetwork.AddWindowsPrinterConnection "\servernameprintername" 'WSHNetwork.AddWindowsPrinterConnection "\servernameprintername" 'WSHNetwork.SetDefaultPrinter "\servernameprintername" 'Clean Up Memory We Used set UserObj = Nothing set GroupObj = Nothing set WSHNetwork = Nothing set DomainString = Nothing set WSHSHell = Nothing Set WSHPrinters = Nothing 'Call WSHShell.Run("cmd.exe /C \serverfolderfolderfolderscan32.exe") 'Quit the Script wscript.quit __________________________________________ All this is used to map 1 drive for all of our users. I did not put this script in, but a third party tech company my boss hired to help us. I'm thinking this maybe the problem, but don't have a solution to remapping the drives if I take this out of our policy's. I have never created a VBS script to map drives for all users. Thanks for reading over my issues, I will greatly appreciate help in this matter.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Have you tried allowing windows to manage the connections or AD instead of this custom script?

Are the connection properties set to reconnect if disconnected?

Hope this helps!

-Schmidtw

——————————————

Madpawn 215 pts. | Sep 9 2009 1:49PM GMT

I have found the problem with our network. The problem was our ASA5510. There was a setting in the access list that was causing this problem. It was blocking all internal traffic to our main server. once we did a “NO…” command for it everything is fine on the network.

Thank you to all of you who have helped me in this effort to solve the problem!

Discuss This Question: 13  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Madpawn
    I forgot to mention, the computers hold a good connection to the network, server, ext... but sometimes they do drop connection and this results in my issues with reconnecting, syncing, lose of mapped drives, ext...
    220 pointsBadges:
    report
  • Madpawn
    I have not allowed windows to manage the connections or AD yet. and also I feel very stupid for saying this, but I do not know if the connection properties are set to reconnect if disconnected... I will check into this tho. How do I go about letting windows manage the mapped drives without a script, I thought that you had to have a script? See I would love to go to every computer 1 by one and add the mapped drives manually, but I don't have the man power to do that in 1 day. How can I do it without a script?
    220 pointsBadges:
    report
  • mshen
    What happens when you re-run the script without rebooting? That should remove the drives and re-map them. An alternative would be to make batch scripts for each group and apply that with a GPO login script. I would look into the reason why the VPN connection is dropping. What type of VPN is setup?
    27,385 pointsBadges:
    report
  • Madpawn
    this is a login VBSscript in GPO for the user group. Our VPN connection is not dropping it's just the mapped drives on re-map and some of our users have roming profiles and they will not re-sync once connection is dropped.
    220 pointsBadges:
    report
  • Madpawn
    the issue that I'm trying to get at is that I belive this VBSscript is causing some conflicts... In the script above our company only has use for these script lines ______________________________________________________ 'Map drives needed by all 'wshNetwork.MapNetworkDrive "z:", "\**SERVER NAME**users" & UserString,True 'Basically maps home drive 'wshNetwork.MapNetworkDrive "s:", "\**SERVER NAME**common",True ____________________AND_______________________________ Case "administrators" wshNetwork.MapNetworkDrive "t:", "\**SERVER NAME****FILE NAME**",True ____________________AND_______________________________ 'Call WSHShell.Run("cmd.exe /C \serverfolderfolderfolderscan32.exe") 'Quit the Script wscript.quit _______________________________________________________ as I have stated, I'm not an expert in scripts, but can I take out some of the unneeded entries in the script and it still function as it should? and could some of this be causing us problems?
    220 pointsBadges:
    report
  • mshen
    I don't see any problems with the script, but to ease your mind about this script, you can do as I mentioned before which is replace the script with a batch script for each group by using the NET USE command. The login script would not be the reason why these drives disconnect. I'm thinking this is a more ominous issue with your network or VPN.
    27,385 pointsBadges:
    report
  • Madpawn
    ok, I see what your getting at now lol. Easing my mind is one thing, but I do need to fix this problem on my network. Where might I look to see what is causing the problem? the main problem is in the local office to the server. The software my users are using is a LIVE SQL base software. When the network connection drops for the unknown reason the software freezes and the user may loose some work they have done. once the connection has dropped they must reboot to get back on the software or the internet. This does not happen all at once with every computer getting dropped, just every so often 1 will drop.
    220 pointsBadges:
    report
  • mshen
    Intermittent problems are the hardest to figure out. Check the event logs to see if there are any errors around the time that the connection drops. You should also make sure there is a keep-alive; if the VPN becomes inactive after a few minutes of inactivity, that may be causing the problem.
    27,385 pointsBadges:
    report
  • Madpawn
    I will check the log next time it happens and let you know. The VPN is set to keep alive for sure, just checked that.
    220 pointsBadges:
    report
  • Madpawn
    I've checked the event log. nothing seems to be showing an error to relate to the connection to the network being dropped. could there be a issue in GPO that might cause this connection loss?
    220 pointsBadges:
    report
  • mshen
    Monitor your bandwidth usage on the WAN if your equipment has the functionality; you may have to use some third party software and mirror the port. This will help you diagnose the issue. You can also test connectivity by sending an unlimited ping from one side to another to see if there is latency and packet loss at certain times of the day. That will also give you a secondary keep alive.
    27,385 pointsBadges:
    report
  • Madpawn
    I have found the problem with our network. The problem was our ASA5510. There was a setting in the access list that was causing this problem. It was blocking all internal traffic to our main server. once we did a "NO..." command for it everything is fine on the network. Thank you to all of you who have helped me in this effort to solve the problem!
    220 pointsBadges:
    report
  • mshen
    Thanks for posting the solution. I'm glad things worked out for you.
    27,385 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following