JSI Tip 7263. Accexp freeware quickly sets or retrieves a non-domain account's expiration value.

Jerold Schulman

September 29, 2003

1 Min Read
ITPro Today logo in a gray background | ITPro Today

Download the AccExp freeware.

NOTE: An accounts expiration date should NOT be confused with the password expiration date.

When you type accexp /?, you receive:

AccExp V01.01.00cpp Joe Richards ([email protected]) August 2002Usage: AccExp user date [/s machine]   user          User ID to view/modify   date          Date in US format mm/dd/yy or mm/dd/yyyy                 Value of NEVER clears the expiration   machine       Machine to make the change at  Ex1:    AccExp test      View expiration date of account test on local machine  Ex2:    AccExp test /s testmachine      View expiration date of account test on server testmachine  Ex3:    AccExp test 1/30/02      Change expiration date of account t0 1/30/2002 for user test  Ex4:    AccExp test never      Set test to never expire This software is Freeware. Use it as you wish at your own risk. If you have improvement ideas, bugs, or just wish to say Hi, I receive email 24x7 and read it in a semi-regular timeframe. You can usually find me at [email protected]

If you wanted the value to be available in a batch script:

set Expire=Neverfor /f "Tokens=1,3" %%e in ('accexp ') do if /i "%%e" EQU "Account" set Expire=%%f



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like