set oUser=GetObject("LDAP://cn=s040695"_
& ",ou=TestsinomosAccounts,dc=testsinomos,dc=com")
Set oDomain = GetObject("WinNT://testsinomos")
'make sure the user have not belonged to the group
For Each oGroup In oUser.groups
if ( oGroup.name <> "Domain Users" and
oGroup.name <> "Domain Admins") then
'delete all group
'i can write the statement,wishing help me
end if
Next
Set oGroup = oDomain.GetObject("Group", sGroup)
oGroup.Add ("WinNT://sinomos/s040695")
how can i write the statement to implement the deleting the group no matter user belonged to or not , how can i do ,
& ",ou=TestsinomosAccounts,dc=testsinomos,dc=com")
Set oDomain = GetObject("WinNT://testsinomos")
'make sure the user have not belonged to the group
For Each oGroup In oUser.groups
if ( oGroup.name <> "Domain Users" and
oGroup.name <> "Domain Admins") then
'delete all group
'i can write the statement,wishing help me
end if
Next
Set oGroup = oDomain.GetObject("Group", sGroup)
oGroup.Add ("WinNT://sinomos/s040695")
how can i write the statement to implement the deleting the group no matter user belonged to or not , how can i do ,