Register-SmisProvider

Register-SmisProvider

Registers an SMI-S provider and stores the configuration in the SMI-S service.

구문

Parameter Set: Default
Register-SmisProvider [-ConnectionUri] <Uri> [-Credential] <PSCredential> [[-AdditionalUsers] <String[]> ] [[-CimSession] <CimSession> ] [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

자세한 설명

The Register-SmisProvider cmdlet registers a Storage Management Initiative - Specification (SMI-S) provider. The cmdlet registers a provider identified by a Uniform Resource Identifier (URI), and stores the configuration and credentials for later use. In order to use a provider, you must register the provider with the SMI-S service.

When you register the provider, the credentials are stored for your use only. You can also specify other users to manage the registered provider.

To search for a list of SMI-S providers on the same subnet as your server, use the Search-SmisProvider cmdlet.

If the provider is using the HTTPS protocol, you may be prompted to accept the certificate if it has not been previously seen by your server.

매개 변수

-AdditionalUsers<String[]>

Specifies an array of other users who can manage the SMI-S provider. The cmdlet stores the credentials , specified by the -Credentials parameter for users in the AdditionalUsers parameter.

별칭

Users

필수 여부

false

위치

3

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-CimSession<CimSession>

원격 세션에서 또는 원격 컴퓨터에서 cmdlet을 실행합니다. New-CimSession 또는 Get-CimSession cmdlet의 출력과 같은 컴퓨터 이름이나 세션 개체를 입력합니다. 기본값은 로컬 컴퓨터의 현재 세션입니다.

별칭

없음

필수 여부

false

위치

4

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-ConnectionUri<Uri>

Specifies the URI of the SMI-S provider to register. For CIMXML-based providers, the format must include the protocol specifier (HTTPS and HTTP are supported). The port number for such providers should also be specified, but can be omitted if the default SMI-S ports are used (5989 for HTTPS and 5988 for HTTP). The ConnectionUri is just the server name for SMI-S providers implemented as WMI providers.

별칭

Uri

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Credential<PSCredential>

Specifies the credentials used to for authentication with the SMI-S provider. The cmdlet stores the credentials for subsequent use.

별칭

Creds

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Force

Performs the action without a confirmation message.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

예제

Example 1: Register an SMI-S provider

This command registers an SMI-S provider by using a URI.

PS C:\> Register-SmisProvider -ConnectionUri https://smis.contoso.com:5989

Example 2: Register an SMI-S WMI provider in an automated script

This example registers an SMI-S WMI provider.

The first command converts a string to a secure string and assigns the result to the variable $password.

The second command creates a new credential object by using the $password variable and assigns the result to the variable $cred.

The third command registers an SMI-S provider by using the variable $cred.

PS C:\> $password = ConvertTo-SecureString "p@ssword" -AsPlainText -Force
PS C:\> $cred = New-Object System.Management.Automation.PSCredential "admin", $password
PS C:\> Register-SmisProvider -ConnectionUri ContosoServer1 -Credential $cred

Example 3: Discover the storage objects managed by a registered provider

This command discovers the managed objects under a registered SMI-S provider.

PS C:\> Update-StorageProviderCache -Name smis.contoso.com -DiscoveryLevel Level3

관련 항목

Search-SmisProvider

Unregister-SmisProvider