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

Set up the SharePoint 2013 Online Management Shell environment

SharePoint Online global administrators use the SharePoint Online Management Shell to remotely manage site collections, upgrade site collections to a new version, configure SharePoint Online company-level settings, and get logs from data connections between SharePoint Online and other services through Business Connectivity Services.
 
To set up the SharePoint Online Management Shell environment, follow these steps:
 
1.Install Windows Management Framework 3.0 from http://www.microsoft.com/en-us/download/details.aspx?id=3459
 
2.Install SharePoint Online Management Shell.http://www.microsoft.com/en-us/download/details.aspx?id=35588

3.From the Start button, choose All Programs, and then select SharePoint Online Management Shell.

4.Run Connect-SPOService.
Connect-SPOService -Url
https://xxxxxx-admin.sharepoint.com -credential admin@yourdomain.com
 Where URL is the URL of the SharePoint Online Administration Center

5.Credential is the user name to which you want to grant access to the SharePoint Online Administration Center site.

6.Try it out! Run Get-SPOSite to get a list of all the sites.

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