Skip to content

PowerShell scripts for automating one-time and repetitive administrative tasks. Simplify management of Azure AD, on-prem Active Directory, MFA configurations, and general IT operations.

Notifications You must be signed in to change notification settings

reveal79/PsScripts

Repository files navigation

PsScripts

PowerShell MIT License

A collection of real-world PowerShell scripts created and maintained by Don Cook. These tools are used to simplify, automate, and secure IT administration across both on-prem and hybrid Microsoft environments.


📁 Repository Structure

PsScripts/
├── ActiveDirectory/       # On-prem group/user management and reporting
├── AzureAD/               # Cloud mailbox/user automation
├── GeneralAdmin/          # General system and deployment scripts
├── MFA/                   # MFA and identity security scripts

🚀 Featured Scripts

Script Description
Audit-AdminAccounts.ps1 Reports inactive admin accounts based on naming convention (a_*)
Copy-ADUserWithGUI.ps1 Interactive GUI for creating users based on a source template
Disable-User.ps1 Hybrid account reset + disable with AzureAD + AD
Get-ExpiringADUsers.ps1 Identify users with soon-to-expire passwords
Compare-GroupMembers.ps1 Compare membership between two AD groups
Audit-MissingAuthenticatorMFA.ps1 Identify users missing MFA authenticators in Entra ID

🧰 Prerequisites

  • PowerShell 5.1+ or PowerShell 7+ (where applicable)
  • RSAT: Active Directory PowerShell Module
  • AzureAD module (installable via Install-Module AzureAD)
  • Appropriate credentials and administrative rights

🔒 Usage Considerations

  • This repo avoids any real domain references — please update default domain placeholders before running.
  • Customize output paths (C:\Reports, etc.) or make them script parameters for flexibility.

📜 License

Licensed under the MIT License – feel free to use and adapt the scripts with credit.


🙌 Author

Don Cook

LinkedIn (optional)

GitHub: @reveal79

About

PowerShell scripts for automating one-time and repetitive administrative tasks. Simplify management of Azure AD, on-prem Active Directory, MFA configurations, and general IT operations.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published