Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, I'm getting a random error that says

Error Type:

(0x80070035)

C:\INETPUB\WWWROOT\NEWINTRANET\TOOLS\CONTACTPOINTS\../../includes/IsInGroup.asp, line 15

 

here's my code:

<script language="VBScript" RUNAT=Server>

Function IsInGroupReturn(User, Group)

Dim Member

If Group.IsMember(User.ADsPath) Then

IsInGroupReturn = True

Else

IsInGroupReturn = False

End If

End Function

 

Function IsInGroup(strUsername, strUserDomain, GroupName)

Dim objDomain, objGroup, objUser

Set objDomain = GetObject("WinNT://" & strUserDomain)

Set objGroup = objDomain.GetObject("Group", GroupName)

Set objUser = GetObject("WinNT://" & strUserDomain & "/" & strUsername)

IsInGroup = IsInGroupReturn(objUser, objGroup)

End Function

</SCRIPT>

 

It seems that this used to work b4 I started the job. The guy who create it left and is unreachable. I have no clue why this stopped working. Can anyone help?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...