Install RSAT & Active Directory Users and Computers on Windows 11/10 Pro
Open PowerShell as Administrator on your IT workstation to install the ADUC (dsa.msc) snap-in and PowerShell ActiveDirectory module:
Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0
Add-WindowsCapability -Online -Name Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0
Useful Active Directory PowerShell Commands
Quickly audit users or export a Group Policy HTML report right from PowerShell:
# List enabled AD users with email & department
Get-ADUser -Filter {Enabled -eq $true} -Properties EmailAddress,Department | Select Name,SamAccountName,EmailAddress,Department
# Export all Group Policy Objects to an HTML report
Get-GPOReport -All -ReportType Html -Path C:\GPO-Report.html