|
Manage accounts by WhenChanged, WhenCreated and LastLogon
|
|
| 1. | Export all accounts in the domain d2.acme.com to the data section. AD container to column 1, common name to column 2, account disabled flag to column 3 and WhenChanged date to column 4.
|
| 2. | Remove all data section rows with enabled accounts.
|
| 3. | Remove all data section rows where today's date < WhenChanged+90
|
| 4. | Show remaining accounts if any, else quit script.
|
| 5. | Delete all accounts if "Continue" button clicked
|
| 1. | Save the above script as "disabled90.cnu"
|
| 2. | Right-click the desktop, select new shortcut
|
| 3. | In the "Create shortcut" dialog, click "Browse", locate the AdmWin executable.
|
| 4. | Add the text "Delete Inactive IST.cnu" disabled90.cnu /SB /alldata at the end of the row, click next.
|
| 5. | Name the icon and click finish.
|