Tuesday, 26 January 2016

One Liners for Powershell with SharePoint for Custom Layouts Page

#Get custom layouts page to a web application
#Get the mapping to custom layouts page to AccessDenied
Get-SPCustomLayoutsPage  -WEbApplication "http://intranet.contoso.com" | ?{$_.Page -like "*AccessDenied*"}
#Get the mapping to custom layouts page to AccessDenied
Get-SPCustomLayoutsPage  -WEbApplication "http://intranet.contoso.com" | ?{$_.Page -like "*Error*"}
#Get the mapping to custom layouts page to Confirmation
Get-SPCustomLayoutsPage  -WEbApplication "http://intranet.contoso.com" | ?{$_.Page -like "*Confirmation*"}
#Get the mapping to custom layouts page to Login
Get-SPCustomLayoutsPage  -WEbApplication "http://intranet.contoso.com" | ?{$_.Page -like "*Login*"}
#Get the mapping to custom layouts page to RequestAccess
Get-SPCustomLayoutsPage  -WEbApplication "http://intranet.contoso.com" | ?{$_.Page -like "*RequestAccess*"}
#Get the mapping to custom layouts page to Signout
Get-SPCustomLayoutsPage  -WEbApplication "http://intranet.contoso.com" | ?{$_.Page -like "*Signout*"}
#Get the mapping to custom layouts page to WebDeleted
Get-SPCustomLayoutsPage  -WEbApplication "http://intranet.contoso.com" | ?{$_.Page -like "*WebDeleted*"}

No comments:

Post a Comment