일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- FTP7.5
- cluster node as Domain controller
- failover cluster
- LiveKD
- iSCSI target
- Hyper-V
- 인문고전
- Windows Server 2016
- Xperf
- 터키여행
- SQL Server 2008
- paged pool
- ftp7.5 장애조치 클러스터
- 안철수
- windows media service
- 클러스터
- Session space
- 프로세스 CPU 사용량
- windows debugging tool
- MSCS on VMWare
- nonpaged pool
- Local TempDB
- Windows Server 2008
- Nested VM
- SQL Server 2012R2 FCI
- windows update
- dsquery
- windbg
- 작업관리자
- Windows Server 2016 Hyper-v Cluster
Archives
- Today
- Total
류짱:Beyond MySelf
qsuery 명령어를 이용하여 사용하지 않는 사용자 계정 찾는 법 본문
사용자 계정 중에 사용하지 않는 계정을 찾아야 한다면 아래와 같은 명령어로 확인이 가능 합니다.
dsquery user dc=dcryu,dc=com –disabled
만약 사용하지 않음으로 체크 된 계정이 아니라 계정이 생성 된 후 한번 도 로그온 한 적이 없는 사용자를 찾는 것이라면
dsquery * -filter (objectcategory=user) –attr distinguished name lastlogontimestamp –L –limit 0
명령어를 실행 하여 lastlogontimestamp 의 값이 0혹은 Null인 것을 찾으시면 됩니다.
[참고 자료]
Dsquery user
http://technet.microsoft.com/en-us/library/cc725702(WS.10).aspx
How to use the UserAccountControl flags to manipulate user account properties
http://support.microsoft.com/kb/305144/en-us
감사합니다.^^