Download presentation
Presentation is loading. Please wait.
Published byKathryn Bradley Modified over 5 years ago
1
SPC2012 – IT-Pro 4/9/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2
PowerShell 3.0 Administration
SPC Developer 4/9/2019 PowerShell 3.0 Administration Corey Roth Applications Infusion © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
3
Agenda / Key Takeaways Configuring permissions properly for PowerShell
PowerShell for Upgrades Provisioning new Service Applications Managing Apps SharePoint Online Management Shell PowerShell Tips
4
What’s new?
5
PowerShell in SharePoint 2013
Powered by PowerShell 3.0 300 new cmdlets 30+ removed cmdlets
6
What’s new in PowerShell 3.0?
.NET Framework 4.0 Support Windows PowerShell Web Access Updatable Help / Online Help Scheduled Jobs / Task Scheduler Integration Enhanced Tab Completion
7
Getting Started Launch with: SharePoint 2013 Management Shell link
Run SharePoint.ps1 (Add-PSSnapin Microsoft.SharePoint.PowerShell)
8
Permissions Many installations do not have permissions correct
Farm / local administrator is NOT enough PowerShell is more forgiving in SharePoint 2013 Permissions for PowerShell are now configured OOTB Don’t forget to run as administrator
9
Granting permission to PowerShell
SPC2012 – IT Pro 4/9/2019 Granting permission to PowerShell Get-SPShellAdmin – determine access to PowerShell Add-SPShellAdmin – add users to PowerShell Must execute for each content 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 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
10
Add-SPShellAdmin Corey Roth (@coreyroth) SPC2012 – IT Pro 4/9/2019
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11
Getting ready for Upgrade
12
Getting Ready for Upgrade
Test-SPContentDatabase and Mount-SPContentDatabase still used Deferred Site Collection Upgrade = New cmdlets Managing solutions in 14 / 15 hive Test-SPContentDatabase –Name Wss_Content –WebApplication Mount-SPContentDatabase –Name Wss_Content –WebApplication
13
Content Database Upgrade
Corey Roth
14
Solution Management Add solution packages (.wsp) before upgrade
Add-SPSolution – add wsp to solution store Install-SPSolution Activates solution for web application(s) -CompatibilityLevel (14, 15) – Installs solution to 14 / 15 hive Sandboxed solutions added automatically via db attach Add-SPSolution –LiteralPath C:\folder\mysolution.wsp Install-SPSolution -Identity mysolution.wsp -GACDeployment -CompatibilityLevel 15
15
Deferred Site Collection Upgrades
Cmdlets to: Manage Health Checks Upgrade Request Evaluation Site Collections Copy View upgrade status with Get-SPSite
16
Site Collection Health Checks
Test-SPSite Runs Site Collection Health Checks All rules by default or specify specific rule Repair-SPSite Automatically repairs all issues Test-SPSite –Identity Repair-SPSite –Identity
17
Upgrading Site Collections
Upgrade-SPSite Starts Upgrade Process on Site Collection Also resumes failed upgrades -Unthrottled – bypasses throttle limits -VersionUpgrade – used to upgrade from version 14 Upgrade-SPSite -VersionUpgrade
18
Monitoring Upgrade Status
Get-SPSiteUpgradeSession Reports upgrade status for content db and site collection Use with -ContentDatabase or -Site Content Database requires a filter parameter: -HideWaiting -ShowCompleted -ShowFailed -ShowInProgress Get-SPSiteUpgradeSession –Site $database = Get-SPContentDatabase MyContentDb Get-SPSiteUpgradeSession –ContentDatabase $database -ShowInProgress
19
Upgrade Evaluation Site Collections
Request-SPUpgradeEvaluationSite Requests an upgrade evaluation site collection Target URL auto-generated - – specify whether site collection owner and farm admin receive notification Request-SPUpgradeEvaluationSite
20
Copying Site Collections
Copy-SPSite Copies a site collection to a new URL -Identity – source URL -TargetUrl – destination URL -DestinationDatabase (optional) – name of new database Copy-SPSite -DestinationDatabase MyContentDb -TargetUrl
21
Solution Management and Site Collection Upgrade
Corey Roth
22
Service Applications
23
Automating Provisioning
SPC2012 – IT Pro 4/9/2019 Automating Provisioning Most Service Applications deployed by: Creating a Service Creating a Proxy Parameters vary by application Service Application Name Database Application Pool Most SAs take time to provision © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
24
Translation Provides translation capability with Bing Translation
SPC2012 – IT Pro 4/9/2019 Translation Provides translation capability with Bing Translation New-SPTranslationServiceApplication –Name TranslationService -ApplicationPool “SharePoint Web Services Default” –DatabaseServer MyDatabaseServer –DatabaseName TranslationServiceDatabase New-SPTranslationServiceApplicationProxy –Name TranslationServiceProxy –ServiceApplication TranslationService –DefaultProxyGroup © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
25
Work Management Service
SPC2012 – IT Pro 4/9/2019 Work Management Service Provides aggregation between SharePoint, Exchange, and Project New-SPWorkManagementServiceApplication –Name "WM Service App" -ApplicationPool “SharePoint Web Services Default” New-SPWorkManagementServiceApplicationProxy -name "WMServiceProxy" -ServiceApplication “WM Service App” © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
26
Search Provides search capability to the farm
SPC2012 – IT Pro 4/9/2019 Search Provides search capability to the farm Multiple steps involved to provision search Must provision individual components Use Get-SearchServiceInstance to get reference to search on a server Use Start-SPSearchServiceInstance to start search on a server Create new topology with New-SPEnterpriseSearchTopology Add components to the topology Set the topology with Set-SPEnterpriseSearchTopology © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
27
Provisioning Search with PowerShell
# start search on individual servers $server1 = Get-SPEnterpriseSearchServiceInstance -Identity “server1" Start-SPEnterpriseSearchServiceInstance –Identity $server1 # create search service application $appPool = New-SPServiceApplicationPool -name "SsaAppPool" -account domain\appPoolAccount $ssa = New-SPEnterpriseSearchServiceApplication -Name "NewSSA" -ApplicationPool $appPool
28
Provisioning Search with PowerShell (2)
# create topology $newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa # add components New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $server1 New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology –SearchServiceInstance $server1
29
Provisioning Search with PowerShell (3)
New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $server1 New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $server1 New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $server1 New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology –SearchServiceInstance $server1 –IndexPartition 0
30
Provisioning Search with PowerShell (4)
# set the topology Set-SPEnterpriseSearchTopology -Identity $newTopology # verify the topology Get-SPEnterpriseSearchTopology -SearchApplication $ssa # verify all components Get-SPEnterpriseSearchStatus -SearchApplication $ssa -Text
31
Subscription Settings
SPC2012 – IT Pro 4/9/2019 Subscription Settings Now required for hosting apps $account = Get-SPManagedAccount "<farm account>" $appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account $appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB $proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
32
App Management Provision with Service Application and Proxy
SPC2012 – IT Pro 4/9/2019 App Management Provision with Service Application and Proxy Don’t forget to set App Domain New-SPAppManagementServiceApplication -Name AppManagement -DatabaseServer MyDatabaseServer -DatabaseName AppManagementDB –ApplicationPool MyServiceAppPool New-SPAppManagementServiceApplicationProxy -Name AppManagementProxy -UseDefaultProxyGroup -ServiceApplication $appManagementServiceApplication Set-SPAppDomain –Domain apps.domain.local Set-SPAppSiteSubscriptionName -Name "app" -Confirm:$false © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
33
Provisioning Service Applications
Corey Roth
34
Managing Apps
35
PowerShell – App Terminology
AppPackage – physical file containing the app (.app) App – instance of an app on a given subsite .Id propery used often in cmdlets
36
Installing Apps with PowerShell
SPC2012 – IT Pro 4/9/2019 Installing Apps with PowerShell Import-SPAppPackage – imports app package -Path – location of .app file -Site – URL of site collection -Source – MarketPlace / ObjectModel / CorporateCatalog / DeveloperSite Install-SPApp – installs instance of an app -Identity – app object -Web – URL to the site $spapp = Import-SPAppPackage -Path .\myapp.app -Site -Source ([microsoft.sharepoint.administration.spappsource]::ObjectModel) $instance = Install-SPApp -Web -Identity $spapp © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
37
Exporting Apps with PowerShell
SPC2012 – IT Pro 4/9/2019 Exporting Apps with PowerShell Get-SPAppInstance – returns an instance of an app -Identity – app instance -Web – URL of site Export-SPAppPackage – exports app package from content db -App – id of app -Path – path of exported file $instance = Get-SPAppInstance –Web | Where-Object { $_.Title -eq “MyAppTitle" } $Export-SPAppPackage –App $instance.App –Path .\myapp.app © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
38
Updating Apps Update-SPAppInstance – updates an instance of an app
SPC2012 – IT Pro 4/9/2019 Updating Apps Update-SPAppInstance – updates an instance of an app Get a reference to the previous app instance Import new App Package Update app instance using new app package $instance = Get-SPAppInstance -web | Where-Object { $_.Title -eq “MyAppTitle" } $spappv2 = Import-SPAppPackage -Path .\myapp-v2.app -Site -Source ObjectModel Update-SPAppInstance – Identity $instance –App $spappv2 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
39
Managing Apps with PowerShell
SPC2012 – IT Pro 4/9/2019 Managing Apps with PowerShell Corey Roth © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
40
When tools are needed
41
Windows PowerShell for SharePoint Command Builder
SPC2012 – IT Pro 4/9/2019 Windows PowerShell for SharePoint Command Builder © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
42
Windows PowerShell for SharePoint Command Builder
Corey Roth
43
Licensing
44
The Challenge Only some users need Enterprise features
SPC2012 – IT Pro 4/9/2019 The Challenge Only some users need Enterprise features Previously, no way to audit Enterprise use SharePoint 2013 License Checking feature helps © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
45
SharePoint 2013 Licensing Map license types to AD Groups
Enterprise Standard Project OfficeWebAppEdit Standard users blocked from Enterprise features Enterprise Web Parts blocked from Add Web Part menu License Error on existing web parts Disabled by default Enable with SP-EnableUserLicensing
46
License Mapping Get-SPUserLicense New-SPUserLicenseMapping
SPC2012 – IT Pro 4/9/2019 License Mapping Get-SPUserLicense Shows available license types (i.e.: Standard or Enterprise) New-SPUserLicenseMapping Maps an AD group to a license type Also supports roles and claims -SecurityGroup – Active Directory Group -License – License type Add-SPUserLicenseMapping Adds the new license mapping No parameters, pipe input from New-SPUserLicenseMapping © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
47
Enable / Disable Licensing
SPC2012 – IT Pro 4/9/2019 Enable / Disable Licensing Enable-SPUserLicense Activates license checking mode No parameters necessary Disable-SPUserLicense Deactivates license checking mode © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
48
SPC2012 – IT Pro 4/9/2019 Enabling Licensing $standardusers = New-SPUserLicenseMapping –SecurityGroup “SharePoint Standard Users” –License Standard $enterpriseusers = New-SPUserLicenseMapping – SecurityGroup “SharePoint Enterprise Users” –License Enterprise $standardusers | Add-NewSPUserLicenseMapping $enterpriseusers | Add-NewSPUserLicenseMapping SP-EnableUserLicensing © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
49
License Mapping Corey Roth
50
SharePoint Online
51
Getting Started with PowerShell and SPO
SPC2012 – IT Pro 4/9/2019 Getting Started with PowerShell and SPO Install Windows PowerShell 3.0 from Windows Management Framework 3.0 (Windows 7) Already included with Windows 8 and SharePoint 2013 Install SharePoint Online Management Shell Preview Identify your global administrator account Launch SharePoint Online Management Shell Microsoft.Online.SharePoint.PowerShell.dll © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
52
PowerShell for SPO Tips
Remember to use https instead of http Only works with V15 SharePoint Online Commands have similar names Get-SPO prefix Global Administrator account required Use -NoWait for cmdlet to execute immediately
53
Connecting to SharePoint Online
SPC2012 – IT Pro 4/9/2019 Connecting to SharePoint Online Connect-SPOService Connects to SharePoint Online -Url – URL to SharePoint Online tenant administration i.e.: -Credential – complete username of a global administrator i.e.: Connect-SPOService –Url –Credential © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
54
What commands are available?
SPC2012 – IT Pro 4/9/2019 What commands are available? Get-Command –Module Microsoft.Online.SharePoint.PowerShell © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
55
Working with Site Collections
SPC2012 – IT Pro 4/9/2019 Working with Site Collections Get-SPOSite Returns one or more site collections -Identity (optional) – URL of site collection -Limit (optional) – number of site collections to return Default 200, ALL can be used -Filter (optional) – server side filtering using { } Used in lieu of –Identity Note case sensitive operators (-like, -notlike, -eq, -ne) -Detailed – Returns non-default properties such as CompatibilityLevel Get-SPOSite Get-SPOSite -Detailed Get-SPOSite –Identity Get-SPOSite –Filter {Url -like “*term*} © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
56
Creating new Site Collections
SPC2012 – IT Pro 4/9/2019 Creating new Site Collections New-SPOSite Creates a site collection -Url – full URL of new site collection -Owner – full user name of site owner i.e.: -StorageQuota – in MB -Template (Optional) – i.e.: STS#0 Get-SPOWebTemplate – returns all installed site templates -Title (Optional) – name of site collection New-SPOSite -Url -Owner -StorageQuota Title "My new site collection“ –Template STS#0 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
57
Deleting Site Collections
SPC2012 – IT Pro 4/9/2019 Deleting Site Collections Remove-SPOSite Moves site collection to recycle bin -Identity – URL of site collection Supports –confirm and -NoWait Remove-SPOSite –Identity -NoWait © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
58
Restoring Site Collections
SPC2012 – IT Pro 4/9/2019 Restoring Site Collections Restore-SPODeletedSite Restores a site collection from the recycle bin -Identity – URL of site collection Restore-SPODeletedSite –Identity -NoWait © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
59
Upgrading Site Collections
SPC2012 – IT Pro 4/9/2019 Upgrading Site Collections Test-SPOSite -Identity – URL of site collection Upgrade-SPOSite -V2VUpgrade – Required to do a version upgrade -QueueOnly – only add the site collection to the upgrade queue Test-SPOSite -Identity Upgrade-SPOSite -Identity -V2VUpgrade © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
60
Working with Users Get-SPOUser Add-SPOUser
SPC2012 – IT Pro 4/9/2019 Working with Users Get-SPOUser -Site – full URL of site collection -LoginName (Optional) – specific user account name i.e.: Add-SPOUser Adds existing user to a SharePoint Group -LoginName – specific user account name -Group – SharePoint group Get-SPOUser -Site -LoginName Add-SPOUser -Site -LoginName -Group "Team Site Members“ © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
61
PowerShell with SharePoint Online
SPC2012 – IT Pro 4/9/2019 PowerShell with SharePoint Online Corey Roth © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
62
PowerShell Tips
63
Use PowerShell More Effectively
SPC2012 – IT Pro 4/9/2019 Use PowerShell More Effectively Use the TAB key! -Debug -WhatIf © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
64
PowerShell Tips Corey Roth (@coreyroth) SPC2012 – IT Pro 4/9/2019
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
65
Recap Configuring permissions properly for PowerShell
PowerShell for Upgrades Provisioning new Service Applications Managing Apps SharePoint Online Management Shell PowerShell Tips
66
References Windows PowerShell for SharePoint 2013
SPC2012 – IT Pro 4/9/2019 References Windows PowerShell for SharePoint 2013 PowerShell Command Builder Index of PowerShell cmdlets for SharePoint 2013 SharePoint Online Management Shell Configuring Licensing in SharePoint 2013 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
67
4/9/2019 3:58 PM © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.