Get-SPCustomLayoutsPage

カスタム レイアウト ページのマッピングを取得します。

構文

Get-SPCustomLayoutsPage
   -WebApplication <SPWebApplicationPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Identity <SPCustomPage>]
   [-CompatibilityLevel <Int32>]
   [<CommonParameters>]

説明

Get-SPCustomLayoutsPagecmdlet コマンドレットは、Web アプリケーションのカスタム レイアウト ページへのマッピングを返します。 Identity パラメーターが指定されていない場合、このコマンドレットは、すべてのカスタム レイアウト ページのマッピングのコレクションを返します。

SharePoint 製品のWindows PowerShellに関するアクセス許可と最新の情報については、 のオンライン ドキュメントを参照してくださいhttps://go.microsoft.com/fwlink/p/?LinkId=251831

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

Get-SPCustomLayoutsPage -Identity '_layouts/accessdenied.aspx' -WebApplication 'https://webAppUrl'

この例では、Web アプリケーションの AccessDenied レイアウト ページのマッピングを取得します。

パラメーター

-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

-CompatibilityLevel

新しい SPSite オブジェクトを作成するとき、使用するテンプレートのバージョンを指定します。 この値は、サイト コレクションの CompatibilityLevel の初期値を設定します。 このパラメーターを指定しないと、CompatibilityLevel は、CompatibilityRange の設定に応じて、Web アプリケーションで指定できる最高のバージョンに既定で設定されます。

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

-Identity

取得するカスタム レイアウト ページを指定します。

この型は、 None 、 AccessDenied 、 Confirmation 、 Error 、 Login 、 RequestAccess 、 Signout 、 WebDeleted のいずれかであることが必要です。

Type:SPCustomPage
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

-WebApplication

カスタム レイアウト ページを含む SharePoint Web アプリケーションを指定します。

型は、フォーム https://webAppUrl12345678-90ab-cdef-1234-567890bcdefgh、SharePoint Web アプリケーションの有効な名前 (MyOfficeApp1 など) の有効な URL、または有効な SPWebApplication オブジェクトのインスタンスである必要があります。

Type:SPWebApplicationPipeBind
Position:Named
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