Download - PowerShell Fundamentals for SharePoint
PowerShell Fundamentals for SharePoint
2
GOAL
To provide viewers with the knowledge necessary to become self sufficient in learning PowerShell to manage _______
3
AGENDA• Basic PowerShell Cmdlets• Introduction to the SharePoint
Management Shell• Tips, Tricks, Functions, and Scripts
to managing SharePoint
PowerShell is…..
Interactive shellObject Oriented Scripting LanguageCmdlets
Verb-Noun
AliasesCls = Clear-HostDir = Get-ChildItem
Snapins & Modules$ is the prefix for declaring variables
4
5
Discovering PowerShell…• Get-Command
• Wow that is a lot of cmdlets
• Get-Help
6
DEMO 1
Get-Help
Get-Command
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
8
Filtering, Sorting, Selecting….• Where-Object
• Filters objects
• Select-Object• Selects specific properties from objects
• Sort-Object• Sorts objects based on properties
9
Operators…• Compares values• Examples
• -eq• -ne• -gt• -lt• -like• -contains• -is
10
DEMO 2
Get-Member
Pipeline
Filtering, Selecting, Sorting
11
Aliases & Profiles…• New-Alias – allows you to create a
shortcut to cmdlets• Profile(s) – script file that runs on
startup
12
DEMO 3
AliasesProfiles
13
SharePoint Cmdlets Demo
14
Questions?
15