SlideShare a Scribd company logo
1 of 10
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

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...BrightEdge Technologies
 
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 effectivelyAlan Eardley
 
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 ...Dawna Olsen
 
Agile point brief introduction
Agile point brief introductionAgile point brief introduction
Agile point brief introductionDebasish Mahapatra
 
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)Mindy Bohannon
 
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...Chirag Patel
 
Growth Management and Development Dashboard
Growth Management and Development DashboardGrowth Management and Development Dashboard
Growth Management and Development DashboardSafe Software
 
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...Chirag Patel
 
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 TermsEthan Ram
 
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 2014Peter Van de Voorde
 
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 2018Chirag Patel
 
Agile Retrospectives (Виктор Дегтярёв)
Agile Retrospectives (Виктор Дегтярёв)Agile Retrospectives (Виктор Дегтярёв)
Agile Retrospectives (Виктор Дегтярёв)IT Club Mykolayiv
 
[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 StoryDeviniti
 

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 Automate SharePoint 2016 Tasks with PowerShell

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 ProductivityRyan Schouten
 
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 PowerShellBen Stegink
 
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 GroupBen Stegink
 
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 presentationCommunity IT Innovators
 
SharePoint 2016: Here and Now
SharePoint 2016: Here and NowSharePoint 2016: Here and Now
SharePoint 2016: Here and NowColin Phillips
 
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...Prashant G Bhoyar (Microsoft MVP)
 
SharePoint 2016 Up Close and Personal
SharePoint 2016   Up Close and PersonalSharePoint 2016   Up Close and Personal
SharePoint 2016 Up Close and PersonalRegroove
 
Movin’ on Up SPS Houston 2016
Movin’ on Up SPS Houston 2016Movin’ on Up SPS Houston 2016
Movin’ on Up SPS Houston 2016Jim Adcock
 
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 2010charelenetorres
 
What’s new in SharePoint 2016!
What’s new in SharePoint 2016!What’s new in SharePoint 2016!
What’s new in SharePoint 2016!AntonioMaio2
 
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 premisePrashant G Bhoyar (Microsoft MVP)
 
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 DevelopersMichael Blumenthal (Microsoft MVP)
 
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...Prashant G Bhoyar (Microsoft MVP)
 
What's new in sharepoint 2016
What's new in sharepoint 2016What's new in sharepoint 2016
What's new in sharepoint 2016Mike Maadarani
 
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 SPDocKitSummit 7 Systems
 
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 practicesGiuliano De Luca
 
Penny coventry auto-bp-spsbe31
Penny coventry auto-bp-spsbe31Penny coventry auto-bp-spsbe31
Penny coventry auto-bp-spsbe31BIWUG
 
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...Patrick Guimonet
 
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 workflowsKnut Relbe-Moe [MVP, MCT]
 
The Future of SharePoint - SharePoint 2016
The Future of SharePoint - SharePoint 2016The Future of SharePoint - SharePoint 2016
The Future of SharePoint - SharePoint 2016Don Donais
 

Similar to Automate 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

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Automate 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