Script Error - Maybe Group Policy?

From: Bishop (kenw_at_dcnconsulting.com)
Date: 09/28/04


Date: Tue, 28 Sep 2004 08:50:53 -0600

I have a script that starts like this:
     Dim wshNetwork, ADSysInfo, CurrentUser, objUser

     Set wshNetwork = CreateObject("WScript.Network")
     Set ADSysInfo = CreateObject("ADSystemInfo")
     Set objUser = GetObject ("LDAP://" & ADSysInfo.UserName)

     Set ADSysInfo = CreateObject("ADSystemInfo")
     Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
     strGroups = LCase(Join(CurrentUser.MemberOf))

I get an error on the last line with the Join command. I had this error
before and upgrading to scripting engine 5.6 solved the problem. In this
case it's a little different. When I'm logged in as a domain administrator
to the XP SP1 computer the script runs without issue. When I'm logged in as
a standard user that has the Group Policy applied I get the Join error.

Any thoughts on what might be causing the problem?



Relevant Pages