PoshCode Archive  All files named "Delete-AD-Users.ps1"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for Delete-AD-Users.ps1

2018-06-10
14:05
This script will delete all Active Directory User accounts that have not logged in within the number of days specified in the $NumDays variable. The script only deletes the Active Directory user accounts, not any associated Exchange mailboxes. The script also includes the Delete-ADUser function, which can be used separately from this script. All accounts that are deleted are logged in the “Removed-User-Accounts.log” file found in the local directory. The format of the log file is very basic, but effective. file: [3c43e5fafa] check-in: [8695d1a474] user: AlphaSun branch: trunk, size: 2712
13:17
Added: This script will delete all Active Directory User accounts that have not logged in within the number of days specified in the $NumDays variable. The script only deletes the Active Directory user accounts, not any associated Exchange mailboxes. The script also includes the Delete-ADUser function, which can be used separately from this script. All accounts that are deleted are logged in the “Removed-User-Accounts.log” file found in the local directory. The format of the log file is very basic, but effective. file: [a9d6e8deb1] check-in: [197ab8718a] user: AlphaSun branch: trunk, size: 2712