|The stupid question is the question not asked|
Re: Still wont work :(by rchiav (Deacon)
|on Nov 06, 2003 at 22:31 UTC||Need Help??|
Are you sure that the account is disabled?
From the sounds of it you might not know what I meant by "and"ing. In case you're a little confused about that, here's how it works.
That number you see isn't used as a decimal number as you typed it. It's actually used as a binary number. Each binary digit is used as either ON(1) or OFF(0). Now each of those binary places can also be represented as a decimal number.
So... all of these numbers are represented as the UF_ constants. When you AND, you're checking if the bit represented in the UF_ variable is on.
If, for the account you're checking, the account is disabled, I'm guessing you have a problem someplace else.
Your other option is to use WMI. You can invoke it using Win32::OLE . Google for Win32_UserAccount and you should find some good information.