Function Test-ADAuthentication {
param($username,$password)
(new-object directoryservices.directoryentry "",$username,$password).psbase.name -ne $null
}
PS C:\> Test-ADAuthentication "dom\myusername" "mypassword"
True
'AD, Exchange, Skype' 카테고리의 다른 글
AD 특정 OU의 하위 구성원 리스트 출력하기 (0) | 2018.03.15 |
---|---|
특수문자가 포함된 OU 일괄 제거 명령 (0) | 2018.03.15 |
AD ThumbnailPhoto 변경 방법 (0) | 2018.03.15 |
AD 비밀번호 정책 변경 방법 (0) | 2018.01.14 |
메일정책 및 정보변경 관련 명령어 (0) | 2018.01.14 |