Wednesday, April 15, 2015

How to set custom access denied pages in SharePoint 2013?

PowerShell Script:

We created and applied the custom Access Denied page in the web applications
1. Create the “custompages” folder in Layouts folder and WEB FRONT END server:
“c:\Program files\Common Files\Microsoft Shared\Web Server Extensions\
15\TEMPLATE\LAYOUTS\ custompages \Accessdeniederror.html”
2. Run PowerShell Command :
Set-SPCustomLayoutsPage –Identity "AccessDenied" –RelativePath
"/_layouts/15/custompages/Accessdeniederror.html" -WebApplication "http://raghuserver/"
3. Check Custom Layouts Pages Applied:
Get-SPCustomLayoutsPage –WebApplication “http://raghuserver/”
4. Run iisreset.exe.

No comments:

Post a Comment