PowerShell with SharePoint 2013 and Office 365

Report
Working with SharePoint
Objects
Upgrade to SharePoint
2013
Content Database
Upgrade
$database = Get-SPContentDatabase MyContentDb
$ExcelService = Get-SPServiceInstance | Where TypeName -like "Excel*"
$ExcelService.Provision()
Windows 7
$spapppack = Import-SPAppPackage -Path .\myapp.app -Site http://dev.adventure.com -Source ObjectModel
$appinstance = Install-SPApp -Web http://dev.adventure.com -Identity $spapppack
$appinstance = Get-SPAppInstance –Web http://dev.adventure.com | Where-Object { $_.Title -eq “AppTitle" }
Export-SPAppPackage –App $appinstance.App –Path .\myexportedapp.app
$appInstance = Get-SPAppInstance -web http://dev.adventure.com | Where-Object { $_.Title -eq “AppTitle" }
$appv2 = Import-SPAppPackage -Path .\myapp-v2.app -Site http://dev.adventure.com -Source ObjectModel
Update-SPAppInstance – Identity $appInstance –App $appv2
#To Uninstall an App
Uninstall-SPAppInstance -Identity $app
.NET Framework
4.5
Windows
Management
Framework 3.0
Windows Azure AD
Module for Windows
PowerShell 32-bit
Microsoft Online
Services Sign-in
Assistant
Windows Azure AD
Module for Windows
PowerShell 64-bit
All the latest
updates
SharePoint Online
Management Shell
Connect-SPOService –Url https://mytenant-admin.sharepoint.com –Credential
[email protected]
Get-SPOSite
Get-SPOSite -Detailed
Get-SPOSite –Identity https://mytenant.sharepoint.com
Get-SPOSite –Filter {Url -like “*term*}
New-SPOSite -Url https://mytenant.sharepoint.com/sites/mynewsite -Owner [email protected]
-StorageQuota 1000 -Title "My new site collection“ –Template STS#0
Remove-SPOSite –Identity http://mytenant.sharepoint.com/sites/sitename -NoWait
Restore-SPODeletedSite –Identity http://mytenant.sharepoint.com/sites/sitename -NoWait
Test-SPOSite -Identity http://mytenant.sharepoint.com/sites/sitename
Upgrade-SPOSite -Identity http://mytenant.sharepoint.com/sites/sitename -V2VUpgrade
[email protected]
Get-SPOUser -Site https://mytenant.sharepoint.com -LoginName [email protected]
Add-SPOUser -Site https://mytenant.sharepoint.com -LoginName [email protected] -Group
"Team Site Members“
PowerShell 3.0 Courses
or
(All Inclusive Travel Package)
www.netcomlearning.com
MCSE: SharePoint
or
(All Inclusive Travel Package)
www.netcomlearning.com
MCSD: SharePoint Developer
(All Inclusive Travel Package)
or
(All Inclusive Travel Package)
www.netcomlearning.com
Q&A
1-888-5-NETCOM (563-8266)
[email protected]
www.NetComLearning.com

similar documents