Install RSAT Active Directory Tools with Powershell
Add-WindowsCapability –online –Name “Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0”
Server 2022
Get-WindowsFeature | Where-Object {$_.Name -like "RSAT*"} | Install-WindowsFeature
get-WindowsFeature | Where-Object {$_.Name -like "RSAT-AD-Tools"} | Install-WindowsFeature