Reset-SPSites

콘텐츠 데이터베이스를 팜의 구성 데이터베이스와 동기화합니다.

Syntax

Reset-SPSites
     [-Identity] <SPContentDatabasePipeBind>
     [-AssignmentCollection <SPAssignmentCollection>]
     [-Confirm]
     [-WhatIf]
     [<CommonParameters>]

Description

Reset-SPSites cmdlet은 콘텐츠 데이터베이스에 실제로 존재하는 사이트 모음과 관련하여 콘텐츠 데이터베이스를 팜의 구성 데이터베이스와 동기화합니다.

또한 콘텐츠 데이터베이스의 모든 사이트 모음이 구성 데이터베이스에 등록되고 사이트 모음이 콘텐츠 데이터베이스에 없는 경우 구성 데이터베이스의 사이트 모음 참조를 제거합니다.

SharePoint 제품용 Windows PowerShell 대한 권한 및 최신 정보는 SharePoint Server 2016용 Windows PowerShell SharePoint Server 2019 참조(https://go.microsoft.com/fwlink/p/?LinkId=671715)의 온라인 설명서를 참조하세요.

예제

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

$contentdb = Get-SPContentDatabase ContentDbName
Reset-SPSites -Identity $contentDb

ContentDbName이라는 콘텐츠 데이터베이스의 사이트를 구성 데이터베이스와 동기화합니다.

매개 변수

-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

-Confirm

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

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

-Identity

특정 콘텐츠 데이터베이스를 지정합니다. ID 또는 콘텐츠 데이터베이스의 이름 또는 콘텐츠 데이터베이스의 유효한 인스턴스일 수 있습니다.

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

-WhatIf

cmdlet이 실행되면 어떻게 되는지 보여줍니다. cmdlet이 실행되지 않습니다.

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

입력

Microsoft.SharePoint.PowerShell.SPContentDatabasePipeBind

Microsoft. SharePoint.PowerShell.SPAssignmentCollection

출력

System.Object