Windows Script Host when logging into machines

Punkrulz

Somewhat eXPerienced
Joined
Dec 24, 2001
Messages
790
#1
Lately more and more issues have been occuring on various clients involving the Windows Script host. Users are issued a script that applies when they first login. This script handles the mapping of 6 or so mapped drives. Unfortunately, lately more and more computers have been having issues applying this script, when someone logs off and then at some point someone logs in (Doesn't matter how long they wait).

This issue doesn't occur on the first boot / first login of the machine... but will always occur thereafter. It doesn't seem to occur quite on every machine, but it happens on more and more now.



Being for a police department, this issue is becomming more critical, due to the amount of users logging in and out of the machines... and if the drives don't get mapped, they lose crucial access to their reports and other files.

Can someone please help me figure out a resolution to this problem?
 

fitz

Woah.. I'm still here?
Staff member
Political User
Joined
Apr 26, 2004
Messages
4,082
#2
howdy..

first, you may want to blank out the name of your servers.. generally not a good thing to shout out to the world.

second... what command is line 6 running (you can blank out the names of the server as well here)? It could be that the drive is already mapped and you are trying to remap the exising drive.

A little more info here woiuld be helpful in helping you :)
 

Punkrulz

Somewhat eXPerienced
Joined
Dec 24, 2001
Messages
790
#3
No problem!!! I have no problems giving you more information, just have to let me know what you need, hehe!

Ok, first I took your advice and hid the server name. Second off, here is the script that's being run:

Code:
Dim objNet

Set objNet = CreateObject("Wscript.Network")

objNet.MapNetworkDrive "H:", "\\********\HOME"
objNet.MapNetworkDrive "I:", "\\********\Apps"
objNet.MapNetworkDrive "Q:", "\\********\formdata"
objNet.MapNetworkDrive "S:", "\\********\schedulesoft"
objNet.MapNetworkDrive "T:", "\\********\Traffic"
objNet.MapNetworkDrive "W:", "\\********\idphoto"
Unfortunately the only drives that get mapped are when the user logs in. If I login as the administrator, there are absolutely no drives that are mapped.
 

fitz

Woah.. I'm still here?
Staff member
Political User
Joined
Apr 26, 2004
Messages
4,082
#4
You can start here: http://support.microsoft.com/?kbid=841570

Beyond that.. start answering questions :)

are you using the fully qulified domain name in the \\***\<Sharename> section? meaning.. are you just putting in \\<computername>\<sharename> or are you putting in \\<somedomain.domainname.com>\<sharename>?

Are you able to ping the computer name and/or fully qualified domain name?

Also.. Are these occuring on windows 2000 or windows XP? Service Pack levels?

Windows 2000 domain or windows 2003 domain?

Do any of the drives get mapped correctly?

Do you have access to the group policies on the domain? (in particular, look in the settings:
Computer Configuration/Windows Settings/Security Settings/Local Policies/Security Options/LAN Manager Authentication Level... may also want to check the login script group policy settings , run login scripts asynchronously or something like that)


edit:
Unfortunately the only drives that get mapped are when the user logs in. If I login as the administrator, there are absolutely no drives that are mapped.
Logging in as a local administrator account will not run the login.vbs script as it is a domain login policy.. and thus not have any of the drives mapped (assuming you have it setup as a login script on the domain user account properties..)
 
Last edited:

Punkrulz

Somewhat eXPerienced
Joined
Dec 24, 2001
Messages
790
#5
are you using the fully qulified domain name in the \\***\<Sharename> section? meaning.. are you just putting in \\<computername>\<sharename> or are you putting in \\<somedomain.domainname.com>\<sharename>?
We are only putting in \\<servername>\<sharename>, not <servername>.<domainname>.com.

Are you able to ping the computer name and/or fully qualified domain name?
Yes, when this error occurs, I'm able to ping the server by either IP Address or FQDN.

Also.. Are these occuring on windows 2000 or windows XP? Service Pack levels?
Windows XP SP2 Machines... Also, this only really beginning happening more frequently, recently... This leads myself and a few others to believe that this is due to perhaps a recent windows update.

Windows 2000 domain or windows 2003 domain?
Windows 2003

Do any of the drives get mapped correctly?
Negative Ghostrider, my belief is that as soon as the script fails, especially at the first mapping, it doesn't process the rest.

Do you have access to the group policies on the domain? (in particular, look in the settings:
Computer Configuration/Windows Settings/Security Settings/Local Policies/Security Options/LAN Manager Authentication Level... may also want to check the login script group policy settings , run login scripts asynchronously or something like that)
Yes! I do have access to the scripts, the policies, everything... I'm an administrator, hehe. Unfortunately though I know very LITTLE about "LAN Manager Authentication Level". I also know nothing about running login scripts asynchronously.

Logging in as a local administrator account will not run the login.vbs script as it is a domain login policy.. and thus not have any of the drives mapped (assuming you have it setup as a login script on the domain user account properties..)
Yeah, I'm aware of that, I was just stating that we don't have logon script associated with the administrator account. I'll read over that KB, although I highly doubt this has anything to do with mup.sys... I mean why would it work on the first login?
 

fitz

Woah.. I'm still here?
Staff member
Political User
Joined
Apr 26, 2004
Messages
4,082
#6
just out of curiosity, what happens when you try to map the drives manually after the login script fails?
 

Punkrulz

Somewhat eXPerienced
Joined
Dec 24, 2001
Messages
790
#7
Sorry about the delay!

When I try to map the drives manually, I get the same error message, "No Network Provider can accept the given network path". Also, I noticed that when the script fails, I am entirely unable to change the computer's name, description, and domain status either. Peculiar.

Also, another update:

As this request was cross posted on message boards, someone else responded to me to a script that they use. The script is completely different on the way it operates, though I still have it mapping the drives. Another difference is that this script hands out the mapped drives by running from a GPO, instead of running as a script from the user's profile... and I still get the same error messages.

Oddly enough, I contacted Microsoft in regards to this issue, and they wanted to go over some things. While we were having some other strange issues with the primary culprit from this issue, they wanted me to remove and re-join the machine to the domain. Upon doing so, I wasn't able to re-create the script host error... I definitely need to try this some more tomorrow when I am back at that client.

I will keep you guys up to date!
 

Mastershakes

OSNN Veteran Addict
Joined
Jul 6, 2004
Messages
1,721
#8
Try these steps, though to me I don't smell victory here.... worth a shot

http://support.microsoft.com/kb/127933

Sounds like MS is getting close - they do solve the majority of stinky ones I get - thank god I have unlimited calls to them.

Oh - and can you post us the errors along with the event id that show up in the security log?
 

Members online

No members online now.

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,992
Messages
673,382
Members
89,023
Latest member
ganster