Solved

Logon Question

Posted on 2004-10-06
5
204 Views
Last Modified: 2010-04-19
I have a vbs script set up in a group policy to run at logon depending on site location.  It's just a basic script that maps drives to certain shares.  This has been working pretty good since we implemented the new servers back in August.  However, in the last week I have noticed some problems with the script not running.  The first time I log in, I get no drive mappings what so ever.  But if I log back off and right back on the second time it works fine.  Also, in my script I have it set to delete drives in case they were still mapped from before.  There are times when this doesn't work either.  Any ideas as to why either or these would be happening?  Any help would be appreciated.

Thanks in advance!
0
Comment
Question by:steyerhuber
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:seb_acker
ID: 12238785
Have you changed something on your switches ?
if you have the options, try to deactivate the FastLink option on the port used by the clients.
This option can also be named FastPort or PortFast, and is to be setted / unsetted on each port.

It enables the port to transmit infos on the network before the switch identified the device, or before the spanning tree protocol integrated these infos.

If that isn't are you sure nothing else has changed recently ?

0
 

Author Comment

by:steyerhuber
ID: 12239005
Nope, haven't changed anything with the switches.  Really can't think of anything that has changed on the servers either.  It's really weird that the scripts don't work though.  They are set at the Site level.  If I run the set l command from a command prompt it shows the correct logon server and I get the correct IP address associated with the site, just no script.
0
 
LVL 13

Accepted Solution

by:
seb_acker earned 500 total points
ID: 12239985
im sure it's that way you have to look. Look in the switches in order to be clear
0
 
LVL 3

Expert Comment

by:nalanbar
ID: 12247406
Can you post the script?
0
 

Author Comment

by:steyerhuber
ID: 12247747
Below is a copy of the script.  Had the exact same problem this morning when I logged in.  No drive mappings the first time, log off and right back on and everything worked fine.


'  VBScript.' Steyer Huber & Associates, Inc. 8/4/04
'  Purpose of script to map a network drives for all locations
'  and to add network drives for CD-Tower programs.
' ******************************

'   declare variables
dim wshnetwork

'   suppress error messages
on error resume next


'   set reference to WSH network object
set wshnetwork=wscript.createobject("wscript.network")

'   remove network drives in case they are already in use
wshnetwork.removenetworkdrive "F:"
wshnetwork.removenetworkdrive "G:"
wshnetwork.removenetworkdrive "H:"
wshnetwork.removenetworkdrive "I:"
wshnetwork.removenetworkdrive "K:"
wshnetwork.removenetworkdrive "L:"
wshnetwork.removenetworkdrive "M:"
wshnetwork.removenetworkdrive "N:"
wshnetwork.removenetworkdrive "O:"
wshnetwork.removenetworkdrive "U:"
wshnetwork.removenetworkdrive "W:"


'   add network drives
wshnetwork.mapnetworkdrive "F:","\\defiance\def_d"
wshnetwork.mapnetworkdrive "G:","\\archbold\arch_d"
wshnetwork.mapnetworkdrive "H:","\\vanwert\vw_d"
wshnetwork.mapnetworkdrive "I:","\\z429ca5\eform"
wshnetwork.mapnetworkdrive "K:","\\z429ca5\goforms.001"
wshnetwork.mapnetworkdrive "L:","\\z429ca5\ppc_tr"
wshnetwork.mapnetworkdrive "M:","\\z429ca5\ppc_ta"
wshnetwork.mapnetworkdrive "N:","\\z429ca5\ppc_cs"
wshnetwork.mapnetworkdrive "O:","\\z429ca5\ppc_aa"
wshnetwork.mapnetworkdrive "U:","\\z429ca5\goforms"
wshnetwork.mapnetworkdrive "W:","\\findlay\find_d"


WSCript.Quit
'  End of VBScript

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

22 Experts available now in Live!

Get 1:1 Help Now