VBS Mismatch Join

Home Forums Scripting General Scripting VBS Mismatch Join

Viewing 1 post (of 1 total)
  • Author
  • Avatar

    I ‘did’ a search for this and found some interesting answers but they don’t ‘seem’ to apply in my case. I’m running a 2003 AD Domain in the process of migrating to a new domain. On the new domain we will use VBS scripts that I have written and tested from both domains. The script works for most of the users but I ran across a user that gets a “Type Mismatch Join’ error for line 70 — the last statement in the following code is line 70. This user is one of the generic users that we have in the plant but the script works for other generic users.

    This user is local administrator of the machine, and belongs to 2 groups in AD — those were the 2 suggestions I found on the forum. The other users that this script works for are not network administrators – only local admins of their machine.

    All the mapping runs up to this point just as it should.
    any suggestions would be appreciated. I’m very new to VBS scripting and a lot of the script was cut/paste from a script used for OUs already in this new domain.

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


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.