Advertisement

08.26.2007 at 07:10PM PDT, ID: 22788337
[x]
Attachment Details

"Type mismatch: 'Join'" in logon script

Asked by alan_w76 in Windows 2003 Server, Active Directory

Tags: , ,

I have the following script to determine user's group membership when they logon:

Set wshNet = CreateObject("WScript.Network")
Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
colGroups = CurrentUser.MemberOf
strGroups = LCase(Join(colGroups))
.........
if InStr(strGroups, HR) then
   ...................
end if

The script runs fine when I log on as administrator to the computer. However, when I log on as a regular user, I got an error saying "Type mismatch: 'Join', code 800A000D". Anyone knows how to correct it?

Thanks,
Start Free Trial
[+][-]08.26.2007 at 07:25PM PDT, ID: 19773354

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2007 at 07:26PM PDT, ID: 19773356

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.26.2007 at 10:01PM PDT, ID: 19773766

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows 2003 Server, Active Directory
Tags: 800a000d, join, type
Sign Up Now!
Solution Provided By: roamingllama
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.26.2007 at 10:36PM PDT, ID: 19773853

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628