다음을 통해 공유


Test-SCDomainCredential

자격 증명 또는 사용자 이름을 테스트하여 도메인에서 인증되는지 확인합니다.

Syntax

Test-SCDomainCredential
    [-VMMServer <ServerConnection>]
    [-Credential] <VMMCredential>
    [<CommonParameters>]
Test-SCDomainCredential
    [-VMMServer <ServerConnection>]
    [-UserName] <String>
    [<CommonParameters>]

Description

Test-SCDomainCredential cmdlet은 자격 증명 개체 또는 사용자 이름을 테스트하여 도메인에서 인증되는지 확인합니다.

예제

예제 1: 자격 증명 개체의 유효성 테스트

PS C:\> $Creds = Get-Credential
PS C:\> Test-SCDomainCredential -Credential $Creds

첫 번째 명령은 사용자 이름 및 암호를 묻는 메시지를 표시하고 , PSCredential 개체를 만들고, 개체를 $Creds 변수에 저장합니다.

두 번째 명령은 $Creds 자격 증명 개체의 유효성을 검사하고 True 또는 False를 반환합니다.

예제 2: 사용자 이름의 유효성 테스트

PS C:\> Test-SCDomainCredential -UserName "PattiFuller"

이 명령은 사용자 이름 PattiFuller의 유효성을 테스트하고 True 또는 False를 반환합니다.

매개 변수

-Credential

자격 증명 개체를 지정하거나 일부 cmdlet의 경우 이 작업을 수행할 수 있는 권한이 있는 계정의 사용자 이름과 암호를 포함하는 실행 계정 개체를 지정합니다. 또는 Restart-SCJob의 경우 다시 시작한 작업을 완료할 수 있는 권한이 있습니다.

PSCredential 개체에 대한 자세한 내용을 보려면 .를 입력합니다 Get-Help Get-Credential.

실행 계정에 대한 자세한 내용은 다음을 입력 Get-Help New-SCRunAsAccount합니다.

Type:VMMCredential
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-UserName

사용자의 이름을 지정합니다. Domain\User 형식의 사용자 이름을 입력합니다.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VMMServer

VMM 서버 개체를 지정합니다.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

출력

Boolean

이 cmdlet은 부울 결과를 반환합니다.