Remove-SPProfileLeader

会社のリーダーを削除します。

構文

Remove-SPProfileLeader
      [-ProfileServiceApplicationProxy] <SPServiceApplicationProxyPipeBind>
      [-Name] <SPProfileLeaderPipeBind>
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      [-SiteSubscription <SPSiteSubscriptionPipeBind>]
      [-WhatIf]
      [<CommonParameters>]

説明

このコマンドレットは、SharePoint Server with Service Pack 1 (SP1) と SharePoint Foundation with Service Pack 1 (SP1) で導入されました。

コマンドレットを Remove-SPProfileLeader 使用して、会社のリーダーとしてユーザーを削除します。

SPProfileLeader コマンドレットの詳細については、「*-SPProfileLeader Windows PowerShellコマンドレット in SharePoint Server SP1 () (https://go.microsoft.com/fwlink/p/?LinkId=226295https://go.microsoft.com/fwlink/p/?LinkId=226295)」を参照してください。

Windows PowerShell for SharePoint 製品のアクセス許可と最新情報については、「SharePoint Server コマンドレット」のオンライン ドキュメントをご覧ください。

----------------------- 例 -----------------------------

$proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq 'User Profile Service Application Proxy'}
Remove-SPProfileLeader -ProfileServiceApplicationProxy $proxy -Name "contoso\janedow"

この例では、特定のユーザー プロファイル サービス アプリケーションのリーダー リストからユーザー "Jane Dow" を削除します。

パラメーター

-AssignmentCollection

適切な破棄を行うためにオブジェクトを管理します。 SPWeb や SPSite などのオブジェクトの使用によって大量のメモリが使用される場合があるので、Windows PowerShell スクリプトでこれらのオブジェクトを使用するには適切なメモリ管理が必要です。 メモリの解放が必要になった場合は、SPAssignment オブジェクトを使用して、変数へのオブジェクトの割り当てとオブジェクトの破棄を行うことができます。 割り当てコレクションまたは Global パラメーターが使用されていない場合、SPWeb、SPSite、または SPSiteAdministration オブジェクトが使用されていると、オブジェクトは自動的に破棄されます。

Global パラメーターが使用されている場合は、オブジェクトはすべてグローバル ストアに格納されます。 Stop-SPAssignment コマンドを使用してオブジェクトの使用または破棄を直接行わないと、メモリ不足のシナリオになる場合があります。

Type:SPAssignmentCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-Confirm

コマンドを実行する前に確認メッセージを表示します。 詳細については、次のコマンドを入力します。get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-Name

新しいユーザー プロファイル サービス アプリケーションのリーダーとして削除するアカウント名を指定します。 たとえば、Contoso\Joe と指定します。

Type:SPProfileLeaderPipeBind
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-ProfileServiceApplicationProxy

使用するユーザー プロファイル サービス アプリケーションのプロキシの名前を指定します。

Type:SPServiceApplicationProxyPipeBind
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-SiteSubscription

このサービスの実行に使用するアカウントを指定します。 このパラメーターは、ホスト環境では必須、非ホスト環境では省略可です。

Type:SPSiteSubscriptionPipeBind
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-WhatIf

コマンドを実行する代わりに、コマンドの実行結果を説明するメッセージを表示します。 詳細については、次のコマンドを入力します。get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019