To count the number of active users in Active Directory using PowerShell, you can use the following command:
Get-ADUser -Filter {Enabled -eq $true} | Measure-Object | Select-Object -ExpandProperty Count
To count the number of enabled computers in Active Directory using PowerShell, you can use the following command:
Get-ADComputer -Filter {Enabled -eq $true} | Measure-Object | Select-Object -ExpandProperty Count
#powershellscript
#powershell
#windowsserver2025
#windowsserver
#activedirectory
Watch video active directory users and computer count Powershell | Windows server 2025 online without registration, duration hours minute second in high quality. This video was added by user InfoAlias 18 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 13 once and liked it people.