if
(Win32::AdminMisc::UserGetMiscAttributes("\\\\PDC",$username,\%Attribs))
{
   #if the flags are pulled properly from the user account
   if ($Attribs{USER_FLAGS} & UF_ACCOUNTDISABLE) {
     #If account is truly disabled, do something.
   } else {
     #Nope, account isn't disabled.  Don't do anything.
   }
}

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Steven Satelle (Service Desk)
Sent: Friday, February 20, 2004 8:31 AM
To: Perl-Win32-Admin (E-mail)
Subject: Disabled NT accounts?


I've been working on this all day, how do you get the disabled accounts
in a domain? I've looked at adminmisc, netadmin, lanman and
win32api::net all can get an account attributes but none will say
"account disabled" how do I get it?

Thanks in advance

-- 





DISCLAIMER:  The information contained in this email and in any
attachments is confidential and is designated solely for the attention
and use of the intended recipient(s).  If you are not the intended
recipient(s) of this email you must not use, disclose, copy, distribute
or retain this message, the attachment(s) or any part thereof.  If you
believe that you have received this email in error please notify us
immediately at the address set out below.  Please also delete all copies
of this email and any
attachment(s) from your computer system.

  Unless expressly stated this email is not intended to create any
contractual relationship.  If this email is not sent in the course of
the senders employment or fulfilment of his/her duties to Aer Rianta,
Aer Rianta accepts no liability whatsoever for the content of this
message or any attachment(s). 

 [EMAIL PROTECTED]

  Aer Rianta, Head Office, Dublin Airport  


_______________________________________________
Perl-Win32-Admin mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to