Jean-Louis, The example I gave came from a Google search, so I presumed it was accurate. Thank you for the clarification.
You show the "\" symbol for division, where I'm used to "/". Is there a difference or just the way you type it? I ask because you state "entire division" and I'm not quite sure what that means. Is there more to it than just division then followed by the modulus operation? Thanks, Mark -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of ARSmarts Support Sent: Monday, May 04, 2009 2:10 PM To: [email protected] Subject: Re: AD Account Disabled Flag in Remedy? First (1203920 AND 2) == 2, not 1. To test if your account is disabled, the correct test is (1203920 AND 2) > 0 If you want 1 for disabled and 0 for enabled, you can run the following test: (1203920 \ 2) % 2 == 1 indicates that the account is disabled where \ is the entire division, and % is the modulo Jean-Louis Halleux ARSmarts sa www.arsmarts.com On 04 May 2009, at 19:45, Mark Lev wrote: > The AD Attribute "userAccountControl" stores multiple bit values for > AD user accounts. > > The formula to determine if the user is disabled is : > > userAccountControl AND 2 > > For example; userAccountControl = 1203920 > > 1203920 AND 2 = 1 then the account is disabled. > > Any know how we can calculate this in Remedy? > > The bottom line is we want to know if they are disabled, so if > anyone has another way of doing it, that would work for us. > > Thanks, > Mark > > > > ________________________________________________________________________ _______ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org > Platinum Sponsor:[email protected] ARSlist: "Where the > Answers Are" ________________________________________________________________________ _______ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

