About Me

Having 12 years experience in Microsoft technologies.Since more than 7 years working in SharePoint technologies. Expert in providing consultation for SharePoint projects. Hands on with development and administration.

Thursday, 23 July 2015

Turn scripting capabilities on or off for SharePoint 2013 Online

Default scripting capabilities are disabled in SharePoint online, because of this we can’t run scripts in the site & we don’t fine few web parts like, content editor (CEWP) & script editor web part (SEWP) which is very essential in current development trend.

The default scripting capabilities are:
  • For personal sites, custom scripting is disabled by default.
  • For self-service created sites, custom scripting is disabled by default.
  • For the Root Site Collection of the Tenant, custom scripting is disabled by default.
To enable or disable scripting from the SharePoint admin center
  1. Sign in to Office 365 with your registered account.
  2. Go to the SharePoint admin center (https://portal.office.com/admin/default.aspx)
  3. Search for settings, the direct url

4. Select Settings.
5. Under Custom Script choose following
    • Allow users from running custom script on personal sites
    • Allow users to run custom script on self-service created sites.
Select OK. It takes about 24 hours for the change to take effect.
To enable scripting on a particular site collection immediately, use the following PowerShell command
Run following command from SharePoint Online Management Shell
Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0
Make sure the scripting setting in the admin portal matches what you set using PowerShell or the site collection setting may be overridden again in the next 24 hours


  1. Nice, looking forward to seeing these new posts especially with the scenario you’re building for SharePoint 2013 blogs!
    SharePoint Online Training