SlideShare a Scribd company logo
Scripting SharePoint 2016
Tasks with PowerShell
Ben Stegink
Consultant,
Intelligink
Level: Intermediate
About Me
• Owner and Consultant at Intelligink
• Trainer for Opsgility
• 10 Years of SharePoint Experience
• 5 Years of Office 365 Experience
• Ran the SharePoint Users Group
in Jacksonville, FL for 5 Years
• Helped start the Cloud Users
Group in Jacksonville, FL this year.
Ben Stegink
http://www.benstegink.com
http://www.intelligink.com
Twitter: @BenStegink
About this Presentation
• Assumption is that you have some experience
with PowerShell
• We will cover
• Changes with SharePoint 2016
• Tasks you can Automate with PowerShell to save a lot
of time
• Using PowerShell for reporting on your SharePoint
environment
What’s New Different with SharePoint
2016?*
• What’s Been Added?
– 77 cmdlets
– MinRole
– Project cmdlets
• What’s Been Removed?
– 33 cmdlets
– SPEdu cmdlets removed
– Excel Services
*November 2016 CU for SP2013 and SP 2016
Addition Details
• 45 SPProject Additions
• Some “hidden” changes with modified
cmdlet parameters
– New-SPConfigurationDatabase
– New-SPSite
• 6 other Categories of cmdlets
• 11 miscellaneous cmdlets
Miscellaneous Cmdlets
• Copy-SPSideBySideFiles
• Remove-SPCentralAdministration
• Merge-SPUsageLog
• Export-SPTagsAndNotesData
• Get-SPConnectedServiceApplicationInformation
• Get-SPInsightsConfig
• Migrate-SPDatabase
• Reset-SPSites
• Set-SPDefaultProfileConfig
• Set-SPServer
• Upgrade-SPProfileServiceApplication
Reason to Automate with
PowerShell
• Consistency
– Installation, Provisioning Sites, Updating
• Write Once, Use Numerous Times
• Scheduling
– Regular Reports
• Time Savings
Demos
• PowerShell:
https://github.com/benstegink/Presentations/tree/master/
PowerShell/Live360-SharePoint2016-Tasks
– SharePoint 2016
– Automation
– Reporting
Tools and Resources
• PowerShell ISE
• Visual Studio Code
• MSDN
• http://get-spscripts.com/
• PowerShell for SharePoint Command Builder
– Not updated for SharePoint 2016
– https://www.microsoft.com/resources/TechNet/en-
us/Office/media/WindowsPowerShell/WindowsPowerShellCommandBuilder.html
• SharePointPnP.PowerShell Commands
– https://github.com/OfficeDev/PnP-PowerShell
• SharePointDsc
– https://github.com/PowerShell/SharePointDsc
Questions
Thank You!
bstegink@intelligink.com
@benstegink
Slides: https://bsteg.me/SP2016PowerShell

More Related Content

What's hot

What's hot (13)

BrightEdge Share15 - S302: Beyond the Algorithm – Advanced SEO & Technical Tr...
BrightEdge Share15 - S302: Beyond the Algorithm – Advanced SEO & Technical Tr...BrightEdge Share15 - S302: Beyond the Algorithm – Advanced SEO & Technical Tr...
BrightEdge Share15 - S302: Beyond the Algorithm – Advanced SEO & Technical Tr...
 
To-Do: How to manage tasks effectively
To-Do: How to manage tasks effectivelyTo-Do: How to manage tasks effectively
To-Do: How to manage tasks effectively
 
Technical SEO--Beyond the Algorithm--2015 BrightEdge Share Digital Marketing ...
Technical SEO--Beyond the Algorithm--2015 BrightEdge Share Digital Marketing ...Technical SEO--Beyond the Algorithm--2015 BrightEdge Share Digital Marketing ...
Technical SEO--Beyond the Algorithm--2015 BrightEdge Share Digital Marketing ...
 
Agile point brief introduction
Agile point brief introductionAgile point brief introduction
Agile point brief introduction
 
Process Flows - When Pictures Say It All (2018-Nov)
Process Flows - When Pictures Say It All (2018-Nov)Process Flows - When Pictures Say It All (2018-Nov)
Process Flows - When Pictures Say It All (2018-Nov)
 
Ensuring Successful Office 365 Tenant to Tenant Migration SPS Cambridge 2017...
Ensuring Successful Office 365 Tenant to Tenant Migration  SPS Cambridge 2017...Ensuring Successful Office 365 Tenant to Tenant Migration  SPS Cambridge 2017...
Ensuring Successful Office 365 Tenant to Tenant Migration SPS Cambridge 2017...
 
Growth Management and Development Dashboard
Growth Management and Development DashboardGrowth Management and Development Dashboard
Growth Management and Development Dashboard
 
Ensuring Successful Office 365 Tenant to Tenant Migration Collab365 Global Co...
Ensuring Successful Office 365 Tenant to Tenant Migration Collab365 Global Co...Ensuring Successful Office 365 Tenant to Tenant Migration Collab365 Global Co...
Ensuring Successful Office 365 Tenant to Tenant Migration Collab365 Global Co...
 
How to Measure Agility Project Success in Business Terms
How to Measure Agility Project Success in Business TermsHow to Measure Agility Project Success in Business Terms
How to Measure Agility Project Success in Business Terms
 
RealDolmen What's New in the Atlassian Toolset Webinar Q3 2014
RealDolmen What's New in the Atlassian Toolset Webinar Q3 2014RealDolmen What's New in the Atlassian Toolset Webinar Q3 2014
RealDolmen What's New in the Atlassian Toolset Webinar Q3 2014
 
What's new in SharePoint Online - London SharePoint User Group March 2018
What's new in SharePoint Online - London SharePoint User Group March 2018What's new in SharePoint Online - London SharePoint User Group March 2018
What's new in SharePoint Online - London SharePoint User Group March 2018
 
Agile Retrospectives (Виктор Дегтярёв)
Agile Retrospectives (Виктор Дегтярёв)Agile Retrospectives (Виктор Дегтярёв)
Agile Retrospectives (Виктор Дегтярёв)
 
[Jira Day 2018] PPM: The Tempo Story
[Jira Day 2018] PPM: The Tempo Story[Jira Day 2018] PPM: The Tempo Story
[Jira Day 2018] PPM: The Tempo Story
 

Similar to Scripting SharePoint 2016 tasks with PowerShell

Community IT Webinar June 2015 - Windows 10 presentation
Community IT Webinar June 2015 - Windows 10 presentationCommunity IT Webinar June 2015 - Windows 10 presentation
Community IT Webinar June 2015 - Windows 10 presentation
Community IT Innovators
 
Greg Kiefer - project management and share point 2010
Greg Kiefer - project management and share point 2010Greg Kiefer - project management and share point 2010
Greg Kiefer - project management and share point 2010
charelenetorres
 

Similar to Scripting SharePoint 2016 tasks with PowerShell (20)

SPS NYC Using the Office Dev PnP to Accelerate Your Productivity
SPS NYC  Using the Office Dev PnP to Accelerate Your ProductivitySPS NYC  Using the Office Dev PnP to Accelerate Your Productivity
SPS NYC Using the Office Dev PnP to Accelerate Your Productivity
 
Automating SharePoint on premises tasks with PowerShell
Automating SharePoint on premises tasks with PowerShellAutomating SharePoint on premises tasks with PowerShell
Automating SharePoint on premises tasks with PowerShell
 
Reporting in Office 365 - ATL SharePoint and Office 365 User Group
Reporting in Office 365 - ATL SharePoint and Office 365 User GroupReporting in Office 365 - ATL SharePoint and Office 365 User Group
Reporting in Office 365 - ATL SharePoint and Office 365 User Group
 
Community IT Webinar June 2015 - Windows 10 presentation
Community IT Webinar June 2015 - Windows 10 presentationCommunity IT Webinar June 2015 - Windows 10 presentation
Community IT Webinar June 2015 - Windows 10 presentation
 
SharePoint 2016: Here and Now
SharePoint 2016: Here and NowSharePoint 2016: Here and Now
SharePoint 2016: Here and Now
 
SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...
SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...
SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...
 
SharePoint 2016 Up Close and Personal
SharePoint 2016   Up Close and PersonalSharePoint 2016   Up Close and Personal
SharePoint 2016 Up Close and Personal
 
Movin’ on Up SPS Houston 2016
Movin’ on Up SPS Houston 2016Movin’ on Up SPS Houston 2016
Movin’ on Up SPS Houston 2016
 
Greg Kiefer - project management and share point 2010
Greg Kiefer - project management and share point 2010Greg Kiefer - project management and share point 2010
Greg Kiefer - project management and share point 2010
 
What’s new in SharePoint 2016!
What’s new in SharePoint 2016!What’s new in SharePoint 2016!
What’s new in SharePoint 2016!
 
Writing futuristic workflows in office 365 SharePoint 2013 2016 on premise
Writing futuristic workflows in office 365 SharePoint 2013 2016 on premiseWriting futuristic workflows in office 365 SharePoint 2013 2016 on premise
Writing futuristic workflows in office 365 SharePoint 2013 2016 on premise
 
Introduction to PowerShell for SharePoint Admins and Developers
Introduction to PowerShell for SharePoint Admins and DevelopersIntroduction to PowerShell for SharePoint Admins and Developers
Introduction to PowerShell for SharePoint Admins and Developers
 
How to develop maintainable custom Workflows in Office365 SharePoint online 2...
How to develop maintainable custom Workflows in Office365 SharePoint online 2...How to develop maintainable custom Workflows in Office365 SharePoint online 2...
How to develop maintainable custom Workflows in Office365 SharePoint online 2...
 
What's new in sharepoint 2016
What's new in sharepoint 2016What's new in sharepoint 2016
What's new in sharepoint 2016
 
Assessing the Health of Your SharePoint Farm with SPDocKit
Assessing the Health of Your SharePoint Farm with SPDocKitAssessing the Health of Your SharePoint Farm with SPDocKit
Assessing the Health of Your SharePoint Farm with SPDocKit
 
SharePoint Framework get started and best practices
SharePoint Framework get started and best practicesSharePoint Framework get started and best practices
SharePoint Framework get started and best practices
 
Penny coventry auto-bp-spsbe31
Penny coventry auto-bp-spsbe31Penny coventry auto-bp-spsbe31
Penny coventry auto-bp-spsbe31
 
SPS Barcelona 2015 - Real world scenarios to migrate to SharePoint 2016 or Of...
SPS Barcelona 2015 - Real world scenarios to migrate to SharePoint 2016 or Of...SPS Barcelona 2015 - Real world scenarios to migrate to SharePoint 2016 or Of...
SPS Barcelona 2015 - Real world scenarios to migrate to SharePoint 2016 or Of...
 
Knut wf 203 get started with designer workflows
Knut wf 203   get started with designer workflowsKnut wf 203   get started with designer workflows
Knut wf 203 get started with designer workflows
 
The Future of SharePoint - SharePoint 2016
The Future of SharePoint - SharePoint 2016The Future of SharePoint - SharePoint 2016
The Future of SharePoint - SharePoint 2016
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 

Scripting SharePoint 2016 tasks with PowerShell

  • 1. Scripting SharePoint 2016 Tasks with PowerShell Ben Stegink Consultant, Intelligink Level: Intermediate
  • 2. About Me • Owner and Consultant at Intelligink • Trainer for Opsgility • 10 Years of SharePoint Experience • 5 Years of Office 365 Experience • Ran the SharePoint Users Group in Jacksonville, FL for 5 Years • Helped start the Cloud Users Group in Jacksonville, FL this year. Ben Stegink http://www.benstegink.com http://www.intelligink.com Twitter: @BenStegink
  • 3. About this Presentation • Assumption is that you have some experience with PowerShell • We will cover • Changes with SharePoint 2016 • Tasks you can Automate with PowerShell to save a lot of time • Using PowerShell for reporting on your SharePoint environment
  • 4. What’s New Different with SharePoint 2016?* • What’s Been Added? – 77 cmdlets – MinRole – Project cmdlets • What’s Been Removed? – 33 cmdlets – SPEdu cmdlets removed – Excel Services *November 2016 CU for SP2013 and SP 2016
  • 5. Addition Details • 45 SPProject Additions • Some “hidden” changes with modified cmdlet parameters – New-SPConfigurationDatabase – New-SPSite • 6 other Categories of cmdlets • 11 miscellaneous cmdlets
  • 6. Miscellaneous Cmdlets • Copy-SPSideBySideFiles • Remove-SPCentralAdministration • Merge-SPUsageLog • Export-SPTagsAndNotesData • Get-SPConnectedServiceApplicationInformation • Get-SPInsightsConfig • Migrate-SPDatabase • Reset-SPSites • Set-SPDefaultProfileConfig • Set-SPServer • Upgrade-SPProfileServiceApplication
  • 7. Reason to Automate with PowerShell • Consistency – Installation, Provisioning Sites, Updating • Write Once, Use Numerous Times • Scheduling – Regular Reports • Time Savings
  • 9. Tools and Resources • PowerShell ISE • Visual Studio Code • MSDN • http://get-spscripts.com/ • PowerShell for SharePoint Command Builder – Not updated for SharePoint 2016 – https://www.microsoft.com/resources/TechNet/en- us/Office/media/WindowsPowerShell/WindowsPowerShellCommandBuilder.html • SharePointPnP.PowerShell Commands – https://github.com/OfficeDev/PnP-PowerShell • SharePointDsc – https://github.com/PowerShell/SharePointDsc

Editor's Notes

  1. 33 Cmdlets removed are SPEdu and Excel 832 SharePoint Cmdlets
  2. Connect-SPConfigurationDatabase Categories SP Web Template/SP Site Master Fast Site Collection Create Create Site by copying the Site Collection at the Database Level Only be used with OOTB Site Templates* Disable-SPWebTemplateForSiteMaster Enable-SPWebTemplateForSiteMaster Get-SPWebTemplatesEnabledForSiteMaster Get-SPSiteMaster New-SPSiteMaster Remove-SPSiteMaster https://absolute-sharepoint.com/2013/06/sharepoint-2013-site-template-id-list-for-powershell.html SP Site Map During the beta there were additional parameters to the new-spconfigurationdatabase cmdlet that allowed you to create the site map database – these disappeared with the RTM and so did the database and my guess is they just didn’t remove the cmdlets. There are internal methods to provision the database and it appears to be used by a ton of code to access site collections if the db is present (guessing it’s used for large farms where you have site collections spread over lots and lots of databases and you want a quick way to access the information without storing it in the configuration database so my guess is it’s a performance thing that they introduced for O365 but didn’t fully bake into on-prem). I’m sure there’s a way to get the DB created by calling some method or cmdlet but I couldn’t find one outside of using reflection.   If you want to see the schema of the DB that would get created it’s here: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\TEMPLATE\SQL\sitemapdb.sql – you can get a pretty good idea of what it’s purpose is by looking at it. SP Access Services Import and Export an Access Services Database. These can be used to move the Access Services database to a new SQL Server Export-SPAccessServicesDatabase Import-SPAccessServicesDatabase SP Apps Get-SPAppStoreWebServiceConfiguration - https://technet.microsoft.com/en-us/library/mt667915(v=office.16).aspx Set-SPAppStoreWebServiceConfiguration - https://technet.microsoft.com/en-us/library/mt667916(v=office.16).aspx Move-SPAppManagementData – not documented…at all Upgrade-SPAppManagementServiceApplication – not documented…at all SP Service These cmdlets can be used to view the status of the SharePoint Service App Services as well as to start/stop them as well as view/set various service properties Get-SPService Start-SPService Stop-SPService SP Microfeed Get-SPMicroFeedOptions: Get’s the cache feed settings from the User Profile Application Proxy Set-SPMicroFeedOptions: Set “rules” for the Microfeed. Things like MaxMentions, MaxPostLength and MaxTags
  3. Copy-SPSideBySideFiles: Copy SideBySide files when using PowerShell script in zero downtime patching instead of PSConfig.exe. Or if PSConfig.exe fails on the SiteBySide copy, you can use the cmdlet to do it. If the update process fails for any reason, you can run the Copy-SPSideBySideFiles cmdlet to restore the state of the update. For additional information about Side by Side files, see Copy-SPSideBySideFiles. You should enable the side-by-side file copy process before you Upgrade. Running in side-by-side ensures that all the web front ends in the farm serve the same static content during the upgrade, even if static files on a given WFE are being upgraded or replaced. Remove-SPCentralAdministration: Remove CA from the local server Merge-SPUsageLog: Gather information from the Usage Log across the entire farm. Can filter and aggregate logs based on specific information Export-SPTagsAndNotesData: Export the Tags and notes from the SharePoint NewsFeed to a .zip file. Tags and Notes are written into two separate files. Get-SPConnectedServiceApplicationInformation: Get’s the health of a service application proxy Get-SPInsightsConfig: returns the uploader.xml and dataloader.exe.config from configuration database. Then you can make updates to the xml and apply the updates. This is used in a SharePoint Hybrid Auditing Migrate-SPDatabase: No Documentation, Appears to be able to be used to migrated SP2013 Databases to SP2016 (both Service Application DBs as well as maybe content databases) Reset-SPSites: Performs a Sync of the content databasea nd config database. Make sure all sites in Content DB are in Config and all Site collectsion on Config DB actually exist in the content DB Set-SPDefaultProfileConfig: Sets the MySitesPublicEnabled property to true or false Set-SPServer: Set’s the role of the SharePoint Server (think minrole) Upgrade-SPProfileServiceApplication: Upgrades the User Profile Service Application
  4. SharePoint DNS is hosted by Microsoft, you can’t change the URL of SharePoint to anything other than [tenant].sharepoint.com