Error code 80070035 from VBS script at login

We use a group policy to run a login script that will map our user drives whenever anyone logs into the windows network. We run Windows 2003 on the domain controller and all of our computers are runnningeither windows 2000 or windows XP.

I have 83 users that can log into the network without issue One user running a new DELL laptop and windows XP gets an error message whenever the VBS script to map the drives runs.

The message says "error at line 21 network path not found" error code is listed as 80070035.

This is the initial part of the vbs script we are running.
<<<<<<<<<<<<<<<<<<<<<<<
Option Explicit
Dim objNetwork, objUser, CurrentUser
Dim strGroup

Const Marketing_group = "cn=market_dept"
Const Managers_Group = "cn=manage"
'Const What_ever_you_Like = "cn=any_lower_case_group"
'Const Users_Group = "cn=users"
Const Administrators_Group = "cn=administration"
Const Business_Group = "cn=business"
Const Logan_Group = "cn=logan"

Set objNetwork = CreateObject("WScript.Network")

Set objUser = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & objUser.UserName) <<<<< This is line 21 mentioned in the error message box.
strGroup = LCase(Join(CurrentUser.MemberOf))
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

I can insert a write.echo command just after the CreateObject command and the information returned seems to be correct. but after that the script wil fail. BUt it only fails on this one computer, so it has to be a setting or configuration issue on the computer itself. Hoever, I am at a lose as to were to look. Can you make a suggestion?
Regards and thanks in advance
Rick Hanzlik
Network Engineer
Spectrum Engineers
cvc505Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

IsigowCommented:
Try copying the file locally and running it by hand vs over the GPO with the WScript.Echo added in. Does it work then?
What does RSOP.msc show when it runs, are all GPO's applying successfully to this computer or is something different from other systems?
Is there are O/S Differences on this new computer like XP-SP2? Is .NET Installed on other systems and not this one or vice versa? I'm wondering if because it is a new system, some setting has been missed that was previosly made to your domain...

Isi
cvc505Author Commented:
Isi:

I have tried running the script locally from this computer and it does not work there either, I get the same error. As for the other issues you raised , I am afraid I do not know what the RSOP or the GPO mean. This machine is running XP-SP2 and as far as I know it does have the .net installed. it is not the newest machine in the stable I have other lapto0ps that were purchased after this one that will run the script.

Thansk for your input, any other suggestions?
IsigowCommented:
RSOP is Resultant Set of Policy, logon to the machine as an administrator who does not have a group policy object (GPO) running on him and start->run RSOP.msc. It should return every policy that is successfully applying to your machine, or an error if they arent. (more of a check just to make sure everything is kosher with the machine's domain information) What is the output that the wscript.echo is producing?
cvc505Author Commented:
I finally resolved this problem. The user has a copy of the McAfee firewall installed. He was blocking the access to the wsscript host functions. once we removed this, the problem went away.
DarthModCommented:
PAQed with points refunded (500)

DarthMod
Community Support Moderator

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.