https://github.com/mriceman11/powershell-ad-tools
Powershell scripts to manage your AD Infrastructure
https://github.com/mriceman11/powershell-ad-tools
active-directory admin powershell powershell-script windows
Last synced: 6 months ago
JSON representation
Powershell scripts to manage your AD Infrastructure
- Host: GitHub
- URL: https://github.com/mriceman11/powershell-ad-tools
- Owner: MrIceman11
- Created: 2023-03-28T14:37:17.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T14:45:27.000Z (almost 3 years ago)
- Last Synced: 2025-05-28T03:05:51.916Z (9 months ago)
- Topics: active-directory, admin, powershell, powershell-script, windows
- Language: PowerShell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PowerShell-AD-Tools
This is a collection of Powershell scripts to manage your AD Infrastructure
# Scripts
### Empty-Group-Clean
This scirpt will remove all groups that have no members in them. This is useful for cleaning up AD after a migration or other event that may have left empty groups behind.
#
### Old-PC-Clean
This script will remove all computers that have not been seen in the last 30 days. This is useful for cleaning up AD after a migration or other event that may have left old computers behind.
#
### Old-User-Clean
This script will remove all users that have not logged in for the last 30 days. This is useful for cleaning up AD after a migration or other event that may have left old users behind.
#
### PC-Logins
This script will list all computer in a given OU and saved the last login time to a CSV file. This is useful for auditing computers that have not been used in a while.
#
### PC-Mover
This script will move all new computers to a given OU. The OU is determined by the computer name.