SPHOL322: Introduction to Windows PowerShell With ...

2013

SPHOL322: Introduction to Windows PowerShell With SharePoint Server 2013

Hands-On Lab

Lab Manual

This document is provided "as-is". Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. ? 2012 Microsoft. All rights reserved.

Contents

Contents .................................................................................................................................................................1 INTRODUCTION TO WINDOWS POWERSHELL WITH SHAREPOINT SERVER 2013 ........................................2

Lab Objectives........................................................................................................................................................2 Technologies ..........................................................................................................................................................2 Audience ................................................................................................................................................................2 Scenario .................................................................................................................................................................2 Getting Started and Setting up your SharePoint 2013 Management Shell Environment ......................................2

Connect to the Lab Environment .......................................................................................................................2 Exercise 1: Explore the SharePoint 2013 Management Shell ...............................................................................4

Task 1 ? Log In and Configure the SharePoint 2013 Management Shell Environment ....................................4 Task 2 ? Retrieving Information from the Server Farm......................................................................................6 Commonly Used Get Cmdlets ...........................................................................................................................8 Task 3 ? Feature Management..........................................................................................................................9 Task 4 ? Create Site Settings and Properties..................................................................................................11 Exercise 2: Using Wildcards, Filters, and Combining cmdlets in Windows PowerShell......................................15 Task 1 ? Combining Cmdlets in Windows PowerShell ....................................................................................15 Task 2 ? Using Filters and Wildcards with Windows PowerShell Cmdlets......................................................18 Task 3 ? Enumerating Collection Commands and Administrative Tasks with PowerShell .............................20 Exercise 3: Perform Advanced Tasks with PowerShell .......................................................................................23 Task 1 ? Using Local Variables with PowerShell cmdlets ...............................................................................23 Task 2 ? Using Granular Memory Control Cmdlets ........................................................................................24 Task 3 ? Using the Object Model in PowerShell to Change Site Settings.......................................................27 Summary ..............................................................................................................................................................31

Page 1

Hands-on Lab

Introduction to Windows PowerShell with Sharepoint Server 2013

Introduction to Windows PowerShell With SharePoint Server 2013

Estimated time to complete this lab: 90 minutes

Lab Objectives

The objective of this lab is to introduce you to using Windows PowerShell to administer a SharePoint Server 2013 environment. The lab begins with a beginner's introduction to the SharePoint 2013 Management Shell. You'll move onto exploring how you can use PowerShell scripting to administer your SharePoint Server 2013 farm, learn how to assign and create variables, and use the SharePoint object model from Windows PowerShell, and learn Windows PowerShell scripting techniques that simplify administration tasks in SharePoint Server 2013.

After completing this lab, you will be better able to:

Find your way around the SharePoint 2013 Management Shell and interact with SharePoint Web applications, site collections, and sites.

Use Windows PowerShell scripting techniques, such as pipes, filters, wildcards, and enumerations, for SharePoint Server 2013 administration.

Explain how to create and assign variables and use the SharePoint object model from Windows PowerShell.

Technologies

Windows PowerShell, SharePoint Server 2013

Audience

SharePoint Site Administrators and SharePoint IT Professionals

Scenario

This lab takes you through an introduction to using the Windows PowerShell in SharePoint Server 2013 Search user experience with emphasis on exploring the cmdlet interface, new features, configuration options, and customization of SharePoint Servers.

Getting Started and Setting up your SharePoint 2013 Management Shell Environment

Connect to the Lab Environment

Log on to the SharePoint (SP) virtual machine (VM) as Administrator, with the credentials CONTOSO\Administrator, pass@word1.

Microsoft Confidential

Page 2

Hands-on Lab

Introduction to Windows PowerShell with Sharepoint Server 2013

After you have logged on to the VM, start Internet Explorer, navigate to the demo home page at and log into SharePoint as Administrator with the following credentials:

Username: CONTOSO\Administrator Password: pass@word1

Microsoft Confidential

Page 3

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download