Thursday, 28 February 2013

Windows PowerShell for SharePoint Online Reference - Part 2

You can find part 1 of this blog here:

Organization level monitoring and management


Get-SPOAppErrors 
Use this command to get application errors.
Example:
Get-SPOAppErrors –ProductId ba51729b-e017-409d-681a-66f1dd18f0f4

Get-SPOAppInfo 
This command will return a list of all installed applications.
Example:
Get-SPOAppInfo –Name "Excel Service" 

Get-SPOTenant 
Returns SharePoint Online organization properties.
Example:
Get-SPOTenant


Get-SPOTenantLogEntry 
Retrieves SharePoint Online company logs. For now, the only logs available are for Business Connectivity Services (BCS).
Example:
$endtime = Get-SPOTenantLogLastAvailableTimeInUtc$starttime = $endTimeinUTC.AddMinutes(-1200000)$tenantlogs = Get-SPOTenantLogEntry -StartTimeinUtc $startTimeinUTC.Date -EndTimeinUTC $endTimeinUTC.Date

Get-SPOTenantLogLastAvailableTimeInUtc 
This command returns the time when the SharePoint Online organization logs are collected. Same as the Get-SPOTenantLogEntry command, for now, the only logs available are for Business Connectivity Services (BCS).
Example:
Get-SPOTenantLogLastAvailableTimeInUtc


Get-SPOWebTemplate
You can use this command to get a list of all site templates available that match a given identity.
Example:
Get-SPOWebTemplate

Set-SPOTenant
This command sets properties on the SharePoint Online organization.
Example:
Set-SPOSite -Identity https://adoptcloud.sharepoint.com/sites/coolsite -LockState NoAccess

Upgrade


Upgrade-SPOSite 
After your Wave 14 Office 365 tenant is upgraded to Wave 15, you will notice that your SharePoint sites are not automatically upgraded to the latest SharePoint 2013 site. You can use this command to trigger the upgrade after you have properly assessed and tested the impacts of upgrade.
Example:
Upgrade-SPOSite -Identity https://adoptcloud.sharepoint.com/sites/coolsite

and here is a reference to available parameters for this command:
http://technet.microsoft.com/en-us/library/fp161395.aspx



Request-SPOUpgradeEvaluationSite
As mentioned in Upgrade-SPO command, before upgrading to SharePoint 2013 in Office 365, you may want to test the impacts of the upgrade in advance. you use this command request to create a copy of an existing site collection for the purposes of validating the effects of upgrade without affecting the original site.
Example:
Request-SPOUpgradeEvaluationSite http://adoptcloud.sharepoint.com/sites/coolsite

Reference for more reading:
http://technet.microsoft.com/en-us/library/fp161386.aspx

1 comment:

  1. I have read your blog its very attractive and impressive. I like it your blog.

    Java Online Training Java EE Online Training Java EE Online Training Java 8 online training Core Java 8 online training

    Java Online Training from India Java Online Training from India Java Online Training

    ReplyDelete