I've made the following script to give me some info about right on exchange mailboxes. This work fine. But I;m only interested in the explicitly defined rights, I want to ignore all inherited rights. Unfortunately the output I need is in the Else part of the If...then...else... I can comment out the wscript.echo command between "if" and "else" but that not very nice looking. Change "if" into "if not" doesn't produce the required result either. What do
Posts: 1894
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
You could just add a NOT in there
If ace.AceFlags And NOT ADS_ACEFLAG_INHERITED_ACE Then wscript.echo Ace.AceFlags & Vbtab & "Explicit" & VbTab & Ace.AccessMask & VbTab & AceName End If Not sure if that is what it would be since I am not that familiar with Exchange scripting, but it should give you a start.
_____________________________
Mike
For useful Scripting links see the Read Me First stickey!
If ace.AceFlags And NOT ADS_ACEFLAG_INHERITED_ACE Then wscript.echo Ace.AceFlags & Vbtab & "Explicit" & VbTab & Ace.AccessMask & VbTab & AceName End If Not sure if that is what it would be since I am not that familiar with Exchange scripting, but it should give you a start.
No, I also tried that earlier. if I do that all the lines which were originally printed by both wscript.echo statements will be printed using only the first.