Announcement

Collapse
No announcement yet.

Script misbehaving

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script misbehaving

    Hi all,

    I have a little confusing situation with a script.

    This script is assigned through GPO to run at logon and it usually runs without any errors. Run on its own, works perfectly.

    But on occassion it gives the following error message:

    Error: The network path was not found.
    Code: 80070035

    The part of the script that causes the problem is as follows (and the error generated occurs on the 2nd line):

    Set WshNetwork = WScript.CreateObject("WScript.Network")
    Set userObj = GetObject("WinNT://" & WshNetwork.UserDomain & "/" & WshNetwork.UserName & ",user")

    I have no idea what could be causing this! Anyone got any ideas?

    James
Working...
X