Skip to main content

set Custom Error page in Powershell command

C:\PS>Set-SPCustomLayoutsPage -Identity "_layouts/accessdenied.aspx" -Relat
ivePath "/_layouts/custompages/myaccessdenied.aspx" -WebApplication "http:/
/server_name/mywebapp"

This example maps the specified path for the AccessDenied layout page in th
e Web application "http://server_name/mywebapp".

Comments

  1. this post is very nice..collections are great..i likes it…keep posting more blogs..i wish u for a great future..

    ReplyDelete

Post a Comment