You can check it from the command line with

Net user userid /domain

Or 

Getuserinfo domain\userid


Getuserinfo you can find on the free win32 tools page of www.joeware.net


Obviously you could script something as well. 



Ex:

F:\Dev\cpp\CPAU>net user joe /domain
The request will be processed at a domain controller for domain
joehome.com.

User name                    joe
Full Name
Comment
User's comment
Country code                 000 (System Default)
Account active               Yes
Account expires              12/24/2002 1:00 AM

Password last set            12/21/2002 10:41 AM
Password expires             3/21/2003 10:41 AM
Password changeable          12/22/2002 10:41 AM
Password required            Yes
User may change password     Yes

Workstations allowed         All
Logon script
User profile
Home directory
Last logon                   12/21/2002 10:42 AM

Logon hours allowed          All

Local Group Memberships      *Account Operators
Global Group memberships     *Domain Users
The command completed successfully.


F:\Dev\cpp\CPAU>getuserinfo joehome\joe

GetUserInfo V02.05.00cpp Joe Richards ([EMAIL PROTECTED]) January 2002

User information for joehome\joe  (\\W2KASDC1)

User Name                  joe
Full Name
Description
User's Comment
User Type                  User
Enhanced Authority         AccOp
Account Type               Global
Workstations

Home Directory
User Profile
Logon Script
Flags                      EXPIRED
Account Expires            Expired  - 12/24/2002 1:00 AM

Password age in days       190
Password last set          12/21/2002 10:41 AM
Bad PWD count              0

Num logons (this machine)  24
Last logon                 12/21/2002 10:42 AM
Logon hours                All


Global group memberships   *Domain Users
Local group memberships    *Account Operators      *Users


Completed.

F:\Dev\cpp\CPAU>






  joe



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jennifer
Fountain
Sent: Sunday, June 29, 2003 3:00 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] Acct about to expire?


How can you tell with the active directories snap-in when an users acct
is about to expire?  For example, with the users manager, the change
password option is selected.  Do I need a third party tool or script?
Thanks Jenn
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to