Active Directory: 사용자 수 세기

View number of User Accounts in AD via AD PowerShell
Below are 3 simple commands that display how many users you have in AD, how many users that are enabled and also how many that are disabled.

Number of User Accounts
(get-aduser -filter ).count

Number of Enabled User Accounts
(get-aduser -filter *|where {$_.enabled -eq “True”}).count

Number of Disabled User Accounts
(get-aduser -filter *|where {$_.enabled -ne “False”}).count
출처: <http://support.risualblogs.com/blog/2012/07/24/view-number-of-user-accounts-in-ad-via-ad-powershell/>

(Get-ADUser -Filter * -SearchBase “ou=Accounting,ou=administration,ou=people,dc=ncmecad,dc=net”).count
출처: <http://www.experts-exchange.com/Software/Server_Software/Active_Directory/Q_28415501.html>

0. 현재 상태

clip_image002

Accounting OU에는 3명.

clip_image003

ITAdmins OU에는 6명.

1. PowerShell

clip_image001

SearchBase 옵션으로 특정 OU에 대한 사용자를 쿼리하고, (명령).count 옵션으로 카운트.

(Get-ADUser -Filter * SearchBase “OU=Accounting,DC=Adatum,DC=com”).count
(Get-ADUser -Filter * SearchBase “OU=ITAdmins,DC=Adatum,DC=com”).count

2. dsquery

clip_image004

dsquery 구문을 사용하는 방법. 앞쪽에 1: 2: 3: 4: 5: 6: 이런식으로 카운트됨.

dsquery user OU=ITAdmins,DC=Adatum,DC=com -limit 5000 | findstr /r /n “^”
dsquery user OU=Accounting,DC=Adatum,DC=com -limit 5000 | findstr /r /n “^”

이것도 살펴보세요!

ASMB8-iKVM: Firmware Update

https://www.asus.com/us/Commercial-Servers-Workstations/ASMB8iKVM/HelpDesk_Download/ 위 웹사이트에서 최신 펌웨어 다운로드 Version 1.14.2 2018/09/07 (21.37 Mbytes) ASMB8-iKVM Firmware 1.14.2 for …

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다