Error code 80070035 from VBS script at login

Posted on 2006-04-14
Last Modified: 2010-05-18
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
Question by:cvc505
    LVL 7

    Expert Comment

    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...


    Author Comment


    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?
    LVL 7

    Expert Comment

    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?

    Author Comment

    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.
    LVL 1

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
    The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now