kwizcom banner advertisement

How to Disable SharePoint Designer 2013 using PowerShell?

SharePoint Designer 2013 is a great free tool from Microsoft to customize SharePoint sites and create workflows. Why should we disable SharePoint designer? Well, In some cases site owners and designers may damage SharePoint with this Powerful utility, and I've seen SharePoint designer become SharePoint destroyer! So, to prevent from irreversible damages to SharePoint, we decided to disable SharePoint designer.

Since there are no upgrade to SharePoint Designer, SharePoint Designer 2013 continue to support creation and modification of SharePoint sites, pages and workflows for SharePoint 2016 and SharePoint Online environments.

How to disable SharePoint designer in SharePoint 2013 or SharePoint 2016?
You can disable Microsoft SharePoint Designer at Web application and Site collection levels.

Disable SharePoint designer at central administration
To disable SharePoint designer at central administration for a web application, follow these steps:
  • Go to SharePoint 2016 central Administration site >> Click on Application management
  • Click on Manage web applications >> Select your target Web application to disable SharePoint designer
  • From the ribbon, Click on General settings drop down and select SharePoint Designer.
    sharepoint 2013 disable sharepoint designer powershell
  • Unselect all check boxes (or whatever applicable to you) and hit OK to save!
To allow SharePoint designer to be used in this web application, revert the above steps by ticking all check boxes.

SharePoint 2013: Disable SharePoint Designer with PowerShell for a Web Application
Lets disable SharePoint Designer 2013 using PowerShell.

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Get the Web Application
$webApp = Get-SPWebApplication -Identity "http://intranet.crescent.com/"

#Disable SharePoint Designer
$webApp.AllowDesigner = $False
$webApp.AllowRevertFromTemplate = $False
$webApp.AllowMasterPageEditing = $False
$webApp.ShowURLStructure = $False

$webApp.Update()

Disable SharePoint designer at site collection
SharePoint has the ability to disable SharePoint designer at individual site collection level. Here is how to disable SharePoint designer for a site collection.
  • Login to your SharePoint 2016/2013 site collection(or SharePoint online) as an administrator.
  • Click on Site Settings gear >> Select Site Settings.
  • under Site Collection Administration, select SharePoint Designer Settings.
  • Unselect all the options listed.
    disable sharepoint designer site collection powershell
So from now, SharePoint Designer will be disabled for all users including Site collection Administrators! As this is at site collection level, you'll have to repeat these steps for each site collection!

Disable SharePoint designer for site collection using PowerShell
Here is the PowerShell to disable SharePoint designer at site collection level.
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Get the site
$Site = Get-SPSite "http://intranet.crescent.com/sites/sales"

#Disable SharePoint Designer
$Site.AllowDesigner = $True
$Site.AllowRevertFromTemplate = $True
$Site.AllowMasterPageEditing = $True
$Site.ShowURLStructure = $True 
This Stops SharePoint designer from changing code! To enable SharePoint designer using PowerShell, set the $False flags to $True.
#Disable SharePoint Designer on to all site collections
Get-SPSite -Limit All | ForEach-Object {
    $Site.AllowDesigner = $False
}
How to disable SharePoint designer 2010? Refer my another post: Disable SharePoint designer in SharePoint 2010
How to Disable SharePoint Designer 2013 using PowerShell? How to Disable SharePoint Designer 2013 using PowerShell? Reviewed by Salaudeen Rajack on 5:48 PM Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.