Set-SPSecureStoreDefaultProvider

보안 저장소 공급자를 업데이트합니다.

Syntax

Set-SPSecureStoreDefaultProvider
   -Type <Type>
   [-AssignmentCollection <SPAssignmentCollection>]
   [<CommonParameters>]

Description

cmdlet은 Set-SPSecureStoreDefaultProvider 보안 저장소 공급자를 설정하거나 대체합니다. 타사 보안 저장소를 등록하려면 ISecureStoreProvider 인터페이스를 구현합니다. 이 인터페이스를 정의한 상태에서 전역 어셈블리 캐시에 DLL 파일을 배치한 후 아래 예에서처럼 DLL을 로드하고 형식을 로드합니다. 그런 다음 보안 저장소 공급자를 설정할 수 있습니다.

SharePoint 제품용 Windows PowerShell에 대한 사용 권한 및 최신 정보는 SharePoint Server Cmdlets를 참조하세요.

예제

---------------예제---------------

[Reflection.Assembly]::LoadFrom("C:\ContosoFolder\contosoSecureStore.dll")
$type = [Contoso.SecureStore.ContosoSecureStoreProvider]
Set-SPSecureStoreDefaultProvider -Type $type

이 예제에서는 구현된 사용자 지정 보안 저장소 공급자를 설정합니다.

매개 변수

-AssignmentCollection

올바른 삭제를 위해 개체를 관리합니다. SPWeb 또는 SPSite와 같은 개체를 사용하는 경우 많은 양의 메모리를 사용할 수 있으며, Windows PowerShell 스크립트에서 이러한 개체를 사용하려면 올바른 메모리 관리가 필요합니다. SPAssignment 개체를 사용하면 개체를 하나의 변수에 지정하고 해당 개체가 필요한 시기가 지나면 개체를 삭제하여 메모리를 확보할 수 있습니다. SPWeb, SPSite 또는 SPSiteAdministration 개체를 사용하는 경우 지정 컬렉션 또는 Global 매개 변수가 사용되지 않으면 해당 개체가 자동으로 삭제됩니다.

Global 매개 변수가 사용되는 경우 모든 개체가 전역 저장소에 포함됩니다. 개체가 즉시 사용되지 않거나 Stop-SPAssignment 명령을 사용하여 삭제되지 않는 경우 메모리 부족 시나리오가 발생할 수 있습니다.

Type:SPAssignmentCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Type

이 종류는 대괄호를 붙인 보안 저장소 공급자 종류(예: [Reflection.Assembly])여야 합니다.

Type:Type
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition