Skip to main content

Über dieses Buch

Use the latest tools to manage and automate tasks on Microsoft's SharePoint platform. You will achieve time and cost savings, increase reliability of deployments, and learn how to safely and efficiently migrate from a previous version, all while gaining valuable skills in PowerShell scripting.

Authors Nik Charlebois-Laprade and John Edward Naguib begin by explaining the fundamental concepts behind the PowerShell language. Then, with copious real-world examples and scripts, they introduce PowerShell operations in the context of deploying, migrating, managing, and monitoring SharePoint 2016.

What You'll Learn

What’s New in this Edition?

Learn about the new SharePoint 2016 capabilities and min roleExtend the default set of available PowerShell cmdlets for SharePoint 2016 by creating your own reusable Cmdlet functions with PowerShell 5.0

Upgrade your on-premises SharePoint 2013 environment to SharePoint 2016 using PowerShellWho This Book Is For

Administrators, developers, and DevOps engineers working with SharePoint 2016. No experience with PowerShell is required.



Chapter 1. Introduction

PowerShell brings the best of both worlds: the world of administrators and the world of developers, allowing administrators to view in clear text what is being executed as part of a script, and developers to reuse their knowledge of the SharePoint object model by writing reusable modules and methods. It doesn’t require users to compile any code, and it leverages all of the power of the Microsoft .NET framework. The goal of this book is to try to bridge the gap that exists between SharePoint IT pros and developers by giving users tools enabling them to deploy, manage, and monitor their SharePoint environment themselves. By the end of the book, you will be able to perform most operations that are available through the Central Administration interface or through the SharePoint object model, by developing your own flexible and reusable PowerShell scripts.
Nikolas Charlebois-Laprade, John Edward Naguib

Chapter 2. What’s New in SharePoint 2016

SharePoint 2016 was first announced at the Microsoft Ignite 2015 conference in May, 2015. It was the very first time that Microsoft went public with details about what the next major version of its on-premises version of the software was going to include. At that time, several exclusive participants from the Microsoft Most Valuable Professional (MVP) community had already been selected, one of the authors included, to participate in what the software company calls a Technical Assessment Program (TAP). This very limited program granted access to Alpha versions of what would eventually become SharePoint 2016 to its members. For months we've tested the new features and those that have been updated, reporting bugs and making suggestions back to the product team.
Nikolas Charlebois-Laprade, John Edward Naguib

Chapter 3. PowerShell Basics

Throughout this book, it is assumed that readers have had some level of exposure to SharePoint but no experience whatsoever with the PowerShell technology. The content of this chapter will help readers become familiar with the core elements of PowerShell.
Nikolas Charlebois-Laprade, John Edward Naguib

Chapter 4. Installing and Deploying SharePoint with PowerShell

We are now ready to start digging into what PowerShell has to offer to us, SharePoint people. This chapter will go over the basic commands you can use in PowerShell to help automate the build of your SharePoint environment. Through a set of demos, you'll learn how you can write your own custom scripts and reuse them to create new SharePoint machines on demand.
Nikolas Charlebois-Laprade, John Edward Naguib

Chapter 5. Managing SharePoint with PowerShell

We are now ready to take on the core of the subject of this book: how to interact with your SharePoint environment using PowerShell. In this chapter, we will make various analogies to compare how PowerShell relates to classic .NET interactions using the SharePoint object model. Throughout the following sections you will learn how you can write PowerShell scripts to manage and interact with different levels of SharePoint artifacts such as site collections, sites, lists, items, and so on. By the end of this chapter, you will have been exposed to the different components of SharePoint, and to their methods and properties that are made available through the object model. As mentioned earlier in this book, we assume that by now you have had some level of exposure to some version of SharePoint, and that you understand the different hierarchies of entities that exist within it.
Nikolas Charlebois-Laprade, John Edward Naguib

Chapter 6. Monitoring SharePoint with PowerShell

This chapter is where most of you will get the biggest bang for your buck. It is full of IT pro goodness and will really get into the guts of SharePoint administration. As mentioned earlier in this book, there used to be a time when SharePoint administrative tasks all had to be done using a command-line tool called STSAdm. This legacy tool came from the time when the SharePoint product as we know it today was called SharePoint Team Sites (therefore the STS prefix in the tool’s name). This tool was good, but it was extremely slow to execute heavy operations against the server, and it was difficult for administrators to really know what its methods were really doing in the background.
Nikolas Charlebois-Laprade, John Edward Naguib

Chapter 7. Upgrading from SharePoint 2013 to 2016 with PowerShell

Suppose your organization has a previous SharePoint farm version, and you would like to move the data to a new SharePoint 2016 farm. You have two paths:
Nikolas Charlebois-Laprade, John Edward Naguib

Chapter 8. Managing Office 365 SharePoint Online with PowerShell

As the title says, this chapter is about teaching you how to use PowerShell to manage your SharePoint Online instance in Office 365. We will not be covering the Exchange and Lync aspects of Office 365 in this chapter. It is assumed that readers have already had some level of exposure to the maintenance of site collections in Office 365. In October 2010, Microsoft announced a new wave of online products that was going to be taking their Office suite to the cloud. This new service was going to let users manage their own SharePoint 2010 instances in a multitenant environment. For the sake of clarity, we will use the term SharePoint Online to refer to the SharePoint offering side of Office 365.
Nikolas Charlebois-Laprade, John Edward Naguib

Chapter 9. Managing Add-ins and Solutions using PowerShell

Those of you who are SharePoint administrators are probably starting to feel a little dirty doing all these examples of scripts that are normally the job of developers and end users. Now’s the time go take a shower and to start back fresh. What you will learn in this chapter is what SharePoint administrators normally do in their daily jobs. This chapter builds on the concepts learned in the previous chapters and will enable you to understand how certain configuration changes made to a SharePoint farm can affect artifacts that business users use daily.
Nikolas Charlebois-Laprade, John Edward Naguib

Chapter 10. Extending PowerShell for SharePoint

We are approaching the end of the book and we have discussed various topics about PowerShell for SharePoint 2016 and how to control many SharePoint 2016 functionalities using PowerShell. What if you found that there are some commands missing or you need to create your own commands to manage your farms? Is there a way to do that?
Nikolas Charlebois-Laprade, John Edward Naguib


Weitere Informationen

Premium Partner