New-ClusterNameAccount

New-ClusterNameAccount

Creates a cluster name account in Active Directory 도메인 서비스.

구문

Parameter Set: Credentials
New-ClusterNameAccount -Credentials <PSCredential> -Domain <String> -Name <String> [-Cluster <String> ] [ <CommonParameters>]

Parameter Set: InputObject
New-ClusterNameAccount -Name <String> [-Cluster <String> ] [-Credentials <PSCredential> ] [-Domain <String> ] [-InputObject <PSObject> ] [ <CommonParameters>]

자세한 설명

The New-ClusterNameAccount cmdlet creates a cluster name account in Active Directory 도메인 서비스. A cluster name account is also referred to as a cluster name object (CNO). This cmdlet changes the existing cluster name to match the cluster name account that it creates. If a cluster name account already exists for a cluster, this cmdlet has no effect.

매개 변수

-Cluster<String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-Credentials<PSCredential>

Specifies the credentials that this cmdlet uses when it connects to Active Directory 도메인 서비스. To obtain credentials, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential.

별칭

none

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-Domain<String>

Specifies the Active Directory 도메인 서비스 domain in which this cmdlet creates a cluster name account.

별칭

none

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-InputObject<PSObject>

Specifies the cluster for which this cmdlet adds a cluster name account.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

true(ByValue)

와일드카드 문자 허용 여부

false

-Name<String>

Specifies the name of the cluster name account that this cmdlet creates.

별칭

none

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216)

입력

입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.

  • Microsoft.FailoverClusters.PowerShell.Cluster

    This cmdlet accepts a Cluster object for which it creates a cluster name account.

출력

출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.

Example 1: Create a cluster name account for the current cluster

This command creates a cluster name account for the current cluster in the specified domain. The current cluster is the default value for the cluster on which this cmdlet operates.

PS C:\> New-ClusterNameAccount -Name "cluster_17" -Domain "production.contoso.com"  

Example 2: Create a cluster name account by using credentials

The first command prompts you for credentials, and then stores them in the $Credential variable.

The second command creates a cluster name account for the current cluster in the specified domain. The command supplies the credentials stored in $Credential to access Active Directory 도메인 서비스.

PS C:\> $Credential = Get-Credential
PS C:\> New-ClusterNameAccount -Name "cluster27" -Domain "production.contoso.com" -Credentials $Credential 

관련 항목

Get-Credential