Add example scripts at the bottom Get-SPShellAdmin Add-SPShellAdmin –username sharepoint\sp_newadmin $database = Get-SPContentDatabase MyContentDb Add-SPShellAdmin –username domain\username –database $database.

Download Report

Transcript Add example scripts at the bottom Get-SPShellAdmin Add-SPShellAdmin –username sharepoint\sp_newadmin $database = Get-SPContentDatabase MyContentDb Add-SPShellAdmin –username domain\username –database $database.

Add example scripts at the bottom
Get-SPShellAdmin
Add-SPShellAdmin –username sharepoint\sp_newadmin
$database = Get-SPContentDatabase MyContentDb
Add-SPShellAdmin –username domain\username –database $database
$database = Get-SPContentDatabase MyContentDb
$spapp = Import-SPAppPackage -Path .\myapp.app -Site http://localhost -Source
([microsoft.sharepoint.administration.spappsource]::ObjectModel)
$instance = Install-SPApp -Web http://server -Identity $spapp
$instance = Get-SPAppInstance –Web http://server/sitecollection/site | Where-Object { $_.Title -eq
“MyAppTitle" }
$Export-SPAppPackage –App $instance.App –Path .\myapp.app
$instance = Get-SPAppInstance -web http://server/sitecollection/site | Where-Object { $_.Title -eq
“MyAppTitle" }
$spappv2 = Import-SPAppPackage -Path .\myapp-v2.app -Site http://server/sitecollection/site -Source
ObjectModel
Update-SPAppInstance – Identity $instance –App $spappv2
Management Framework 3.0
Windows
SharePoint Online Management Shell Preview
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“
http://tinyurl.com/a5oaxdf
http://tinyurl.com/43ypa9
http://tinyurl.com/bhp63d2
http://tinyurl.com/b7yvdvf
http://tinyurl.com/cgf5neo