powershell fundamentals for sharepoint

15
PowerShell Fundamentals for SharePoint

Upload: sparkhound-inc

Post on 12-Jan-2015

132 views

Category:

Technology


0 download

DESCRIPTION

Cody's presentation will go through the fundamental PowerShell cmdlets you need to know, as well as dive into common SharePoint scenarios where you can use PowerShell for automation. Level: Beginner

TRANSCRIPT

Page 1: PowerShell Fundamentals for SharePoint

PowerShell Fundamentals for SharePoint

Page 2: PowerShell Fundamentals for SharePoint

2

GOAL

To provide viewers with the knowledge necessary to become self sufficient in learning PowerShell to manage _______

Page 3: PowerShell Fundamentals for SharePoint

3

AGENDA• Basic PowerShell Cmdlets• Introduction to the SharePoint

Management Shell• Tips, Tricks, Functions, and Scripts

to managing SharePoint

Page 4: PowerShell Fundamentals for SharePoint

PowerShell is…..

Interactive shellObject Oriented Scripting LanguageCmdlets

Verb-Noun

AliasesCls = Clear-HostDir = Get-ChildItem

Snapins & Modules$ is the prefix for declaring variables

4

Page 5: PowerShell Fundamentals for SharePoint

5

Discovering PowerShell…• Get-Command

• Wow that is a lot of cmdlets

• Get-Help

Page 6: PowerShell Fundamentals for SharePoint

6

DEMO 1

Get-Help

Get-Command

Page 7: PowerShell Fundamentals for SharePoint

7

Pipeline and Object Members…• Get-Member

• Shows the properties and methods available on objects

• Pipeline |• Allows you to send an object

retrieved from one cmdlet to other cmdlets for further processing

Page 8: PowerShell Fundamentals for SharePoint

8

Filtering, Sorting, Selecting….• Where-Object

• Filters objects

• Select-Object• Selects specific properties from objects

• Sort-Object• Sorts objects based on properties

Page 9: PowerShell Fundamentals for SharePoint

9

Operators…• Compares values• Examples

• -eq• -ne• -gt• -lt• -like• -contains• -is

Page 10: PowerShell Fundamentals for SharePoint

10

DEMO 2

Get-Member

Pipeline

Filtering, Selecting, Sorting

Page 11: PowerShell Fundamentals for SharePoint

11

Aliases & Profiles…• New-Alias – allows you to create a

shortcut to cmdlets• Profile(s) – script file that runs on

startup

Page 12: PowerShell Fundamentals for SharePoint

12

DEMO 3

AliasesProfiles

Page 13: PowerShell Fundamentals for SharePoint

13

SharePoint Cmdlets Demo

Page 14: PowerShell Fundamentals for SharePoint

14

Questions?

Page 15: PowerShell Fundamentals for SharePoint

15