• Complain

Nikolas Charlebois-Laprade - Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers

Here you can read online Nikolas Charlebois-Laprade - Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2017, publisher: Apress, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Nikolas Charlebois-Laprade Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers

Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Use the latest tools to manage and automate tasks on Microsofts 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 Youll Learn

Whats New in this Edition?

  • Learn about the new SharePoint 2016 capabilities and min role
  • Extend 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 PowerShell
Who This Book Is For
Administrators, developers, and DevOps engineers working with SharePoint 2016. No experience with PowerShell is required.

Nikolas Charlebois-Laprade: author's other books


Who wrote Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers? Find out the surname, the name of the author of the book and a list of all author's works by series.

Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Nikolas Charlebois-Laprade and John Edward Naguib 2017
Nikolas Charlebois-Laprade and John Edward Naguib Beginning PowerShell for SharePoint 2016 10.1007/978-1-4842-2884-5_1
1. Introduction
Nikolas Charlebois-Laprade 1 and John Edward Naguib 2
(1)
Gatineau, Qubec, Canada
(2)
Cairo, Egypt
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 doesnt 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.
The SharePoint Challenges
In IT organizations it is common to find a clear distinction between the developers and the administrators. Developers create new modules and functionalities for systems, and administrators are responsible for implementing and deploying them to production environments. Administrators are also normally in charge of configuring and maintaining the environments where these solutions have been deployed. In many cases, developers create solutions without really grasping what their solution will imply for configuration. They give the administrators the instructions to implement their product, and off they go. Even in the SharePoint world, this is often the case.
Weve worked in several IT organizations that have been dealing with the technology, and weve seen many cases in which administrators have to perform hours of manual intervention to configure solutions properly across all sites in a SharePoint environment. To give you a concrete example, think of a typical scenario in which a development team creates a new web part that needs to be added to all existing webs in an environment. What if the environment includes 10,000 web pages spread across multiple site collections? To think that someone is going to go through each of these and manually add the web part is pure craziness. This type of situation highlights the need for a solution that would let the administrators responsible for implementing solutions automate tasks in a repeatable fashion.
Before PowerShell was available, we had to create .exe applications using .NET console applications or .NET windows applications, or even develop extra ASP.NET pages or web parts to apply what is needed to the SharePoint farm. When PowerShell came around, near the end of SharePoint 2007s life, it was like a revelation. Now, we could have the same repetitive configuration tasks being executed against the server, but they were no longer contained in these black boxes that were the console applications. They were now stored as plain-text PowerShell scripts that administrators could open to peek at the logic they contained. For the record, PowerShell scripts are stored as .ps1 files and can be edited using any text editor software. We personally use Notepad++ for all our scripts, but there are some other good free alternatives that offer advanced features such as the automatic completion of command names after a few characters to help speed the writing process. The problem, however, was that if you didnt know your way around the .NET programming world, chances were that you would be totally lost in the code. SharePoint 2007 did not provide any PowerShell methods to interact with its components. You had to load the SharePoint assemblies into your PowerShell sessions and interact with the .NET objects directly. It was basically the same as writing your code in Visual Studio.
SharePoint 2010 then came to the rescue. It offered what we can call shortcut methods, or cmdlets (pronounced command-lets), that allowed users to interact with various SharePoint artifacts in a very straightforward and easy way. For example, assume that you are trying to get the title of a specific SharePoint web in your environment. In the SharePoint 2007 world, this had to be achieved using the something similar to the following lines of PowerShell:
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$site = New-Object Microsoft.SharePoint.SPSite("http://localhost")
$web = $site.RootWeb
$title = $web.Title
Using PowerShell with SharePoint, the same operation can now be achieved using the following two lines of PowerShell:
$web = Get-SPWeb http://localhost
$title = $web.Title
Note
It is best practice when including a URL to add the -identity parameter, as shown here:
Get-SPWeb -Identity http://localhost
but for simplicity we will not use the -identity parameter in this book.
This new way of using PowerShell to interact with SharePoint not only made scripts simpler, it also made them more readable. Administrators wanting to write scripts no longer had to know the SharePoint object model inside-out in order to build powerful PowerShell scripts (although it definitively helped).
PowerShell is not just for administrators, however. Complex scripts might still require some level of programming skill in order to be completed. In many organizations, developers are still responsible for writing the PowerShell scripts for maintenance tasks. This is an interesting paradigm, because it forces them to be aware of how the administration modules of SharePoint actually work. If you want to have a PowerShell script developed for your organization that automates the creation of hundreds of crawled properties for your SharePoint search engine, the developer writing the script will need to understand the various search administrative components to develop the script. This means that, on one end of the spectrum, we need administrators to start understanding some high-level programming concepts and understand the SharePoint object model to some level, and, on the other end, we have developers who need to be more open-minded about the administration aspect and learn how to configure the administrative components of SharePoint properly. Figure illustrates this concept.
Figure 1-1 Traditional developers versus traditional administrators - photo 1
Figure 1-1.
Traditional developers versus traditional administrators
Throughout this book, we will cover material that in a traditional mind-set would be specific to SharePoint administrators, such as timer jobs, health monitors, and backups, but we will also touch on topics that developers would normally be more familiar with, such as lists and list items. In writing this book, our goal was to try to bring traditional SharePoint developers to learn more about the administration aspect of the product, and for administrators to learn more about how the various artifacts are organized in the SharePoint object model. Therefore, by the time you finish reading this book, we hope to bring you out of your comfort zone by opening your horizons and making you understand the possibilities to bring as many developers and administrators on par with regard to their SharePoint skillsets.
History of PowerShell
Microsofts latest scripting language, PowerShell, was first released in the Fall of 2006, just a few months before the release of SharePoint 2007. Because of the parallel development schedule for the two products, SharePoint 2007 never really had any integration points with PowerShell. You could interact with your environment using PowerShell and by making direct calls to objects inside the SharePoint assemblies, but that was never really publicized or even recommended by Microsoft as an official way of managing your systems. SharePoint administrators had to manage their environments using a legacy command-line tool called Stsadm that was first introduced with the original release of SharePoint, then called SharePoint Team Sites (STS).
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers»

Look at similar books to Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers»

Discussion, reviews of the book Beginning PowerShell for SharePoint 2016: A Guide for Administrators, Developers, and DevOps Engineers and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.