Re: IF Statement....
- From: dankennedy24@xxxxxxxxx
- Date: 28 Aug 2006 19:14:36 -0700
Thanks a bunch for the reply... but I still seem to be returning the
disabled users... I also tried editing the final line of your code to
be
IF NOT ((objUser.userAccountControl AND 2) = 2)
However, that didn't work either ;-(
Any other tries are definitely appreciated.
Dan
McKirahan wrote:
<dankennedy24@xxxxxxxxx> wrote in message
news:1156813017.368290.147530@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I'm attempting to write an if statement such that all of the
following are true:
1. Objmember.class is equal to publicfolder, user or group
2. While satsifying one of the above it's also true that the user have
something set in the proxyaddresses filed (this is my elementary check
for mail being enabled)
3. While being a member of one of the three classes in number 1 and
having mail enabled the user account control cannot be 2 which would
mean the object is disabled. So, it must be an enabled account.
Here's what I have:
If ObjMember.Class = "pulicfolder" OR objmember.class = "user" OR
objmember.class = "group" AND objmember.proxyaddresses <> "" AND NOT
((objUser.userAccountControl AND 2) = 2) Then
So as I'm sure you guessed, this doesn't work... any ideas?
Perhaps:
If objMember.class = "pulicfolder" _
Or objMember.class = "user" _
Or objMember.class = "group" Then
If objMember.proxyAddresses <> "" Then
If objUser.userAccountControl <> 2 Then
'...
End If
End If
End If
.
- References:
- IF Statement....
- From: dankennedy24
- Re: IF Statement....
- From: McKirahan
- IF Statement....
- Prev by Date: Re: Need help with simple move script?
- Next by Date: Re: IF Statement....
- Previous by thread: Re: IF Statement....
- Next by thread: Re: IF Statement....
- Index(es):
Relevant Pages
|