SlideShare une entreprise Scribd logo
1  sur  104
Introduction to PowerShell
for SharePoint Developers and
Administrators
Michael Blumenthal & Jack Fruh
2
Who is Michael Blumenthal?
Sr. Solution Architect
at PSC Group
CSPUG Co-Leader
INETA Champ 2010-2013
18 years in IT Consulting
10 years working with
SharePoint (2003,2007,2010, 2013)
3
Who is Jack Fruh?
SharePoint Administrator
Fortune 500 Company
Big on community
SPS Chicago Suburbs Co-
Leader
SharePointJack.com
SPYam
SharePoint-Community.org
4
This is about you
Version of SharePoint?
Admin, Developer, Both, Other?
PowerShell experience?
SharePoint experience?
5
No
Compiling!
No
Packaging!
Just Code &
Go!
Why PowerShell?
6
PowerShell puts the SharePoint
Engine at your fingertips!
• It’s Easy to Get Started!1
• Learn the PowerShell Syntax2
• Real World Examples3
• More Resources4
• Demo!5
7
Chapter 1
Getting Started with PowerShell
Windows Server 2003
• Download
Windows Server 2008
• Install
Server2008 R2, 2012, Win8
• Run (Add ISE)
9
10
11
12
PowerShell V3 ISE
13
POSH vs the SharePoint Mgmt Shell
14
Chapter 2
Learn to use PowerShellwith SharePoint!
Symbols &
Keywords
Using the
SharePoint API
Creating and
Running Scripts
16
Symbols, Keywords, and Syntax! Oh
My!
• Variables1
• Commands2
• Piping3
• Comparisons4
• Flow Control5
• Filtering6
17
Punctuation Pronunciation
Symbol Called Symbol Called
$ Dollar sign, money _ Underscore
# Hash, Pound [ ] Square Brackets
| Pipe, vertical bar . Dot, point, period
{ } Curly braces < > Angle Brackets
“ Double Quote, tick - Dash, hyphen, minus
: Colon % Percent sign
( ) Parentheses ; Semi-colon
+ Plus = Equals, is
! Bang, not /,  Slash, backslash
1$#|
18
Variables begin with a $
• Case Insensitive, Dynamic typing
$foo
$true, $false, $profile, $null
$foo = “Hello, World”
1
19
20
Commands are called cmdlets.
Verb-Noun
Built-in, Extensible
Get-Help & Help
Get-Member
2
21
22
The Power of Piping!
Output Of
Command 1
Input of
Command 2
3
Example
Making Comparisons4
Operator Meaning Operator Meaning
-eq Equals -le Less Than or
Equal To
-ne Not Equals -like Wildcard Match
-gt Greater Than -notlike Not (Wildcard
Match)
-ge Greater Than
or Equal To
-match Reg. Exp. Match
-lt Less Than -notmatch Not (Reg. Exp.
Match)
25
Example
26
Taking Control of the Flow5
• For (Init;Test;Repeat) {Commands}
• for($i=1; $i -le 10; $i++) {Write-Host $i}For
• Foreach (Item in Collection) {Commands}
• Foreach ($web in $site.AllWebs) {$web.Title}ForEach
• If (Test) {Commands}
• if ($web.Title –ne “”) {Write-Host $web.Title}If
• While (Condition){Commands}
• while($val -ne 3){$val++; Write-Host $val}While
Example
28
Where-Object6
•Where {<Test>}Syntax
• V1&2:Dir | Where {$_.Name –like
“B*”}
• V3:Dir | where Name –like B*
Example
DEMO
Directory Sorting
30
Using the SharePoint API
•Getting an SPSite1
•Manipulating It2
•Cleaning Up3
31
Highlights from the SharePoint
Object Model
SPField
SPListItem
SPList
SPWeb
SPWebApplication
SPFarm
32
Loading SharePoint Cmdlets
Even in MOSS 2007:
[void][System.Reflection.Assembly]::
LoadWithPartialName("Microsoft.SharePoint")
Loading SharePoint DLLs
C:...14 or 15CONFIGPOWERSHELL
RegistrationSharePoint.ps1
33
DEMO:
ISE needs to load snapin
34
Get a Site and Explore it!
$site = get-spsite http://server/path
THEN
$site
35
DEMO
Web, Site, Lists
37
A Word About Memory Management
SPWeb SPSite
Inline In Script
38
39
40
Chapter 3
41
Practical Uses
• Bulk Create Sites1
• List Item CRUD2
•Create data for test cases3
• Associate Workflows with a List4
•Work across site collections5
• Deployment Scripting6
• Identify files that won’t upload7
42
More Practical Uses
• Sync Wep App Properties8
• Install SharePoint9
• Repeatably Manage Content10
• Update Field Definitions11
• Edit MP3 Metadata, Make Flashcards12
43
Real World Examples
Check the Farm Version
Create List Items
Bulk Site Creation
Post Deployment Build Scripts with Audio Alerts
Document Versioning Settings (later)
44
What’s your SharePoint Version?
PS C:UsersAdministrator> $(get-
SPFarm).BuildVersion
Major Minor Build Revision
----- ----- ----- --------
14 0 6109 5002
DEMO
Farm & Build Ver
46
Create a List Item
DEMO
Create New Item
48
Audio Alerts
Stick this at the end of your long running script:
$Voice = new-object -com SAPI.SpVoice
$Voice.Speak(“Deployment is done!")
49
Email Alerts
Send-MailMessage [-To] <string[]> [-
Subject] <string> [[-Body] <string>] [[-
SmtpServer] <string>] -From <string> [-
Attachments <string[]>] [-Bcc
<string[]>] [-BodyAsHtml] [-Encoding
<Encoding>] [-Cc <string[]>] [-
DeliveryNotificationOption
<DeliveryNotificationOptions>] [-
Priority <MailPriority>] [-Credential
<pscredential>] [-UseSsl] [-Port <int>]
[<CommonParameters>]
50
Executing Scripts
.filename.ps1
Set-ExecutionPolicy
Unrestricted
DEMO
Run a Script – See Exec Pol
52
Chapter 4
53
Tools and Best Practices
•Tools1
•Best Practices2
•Resources3
Tools
ISE
•Add Windows Feature
PowerShell Plus - Idera
•SP2010 focused
PowerGui
•Pro version Too
PowerShell Studio - Sapien
•Not Free
Visual Studio 2012
55
ISE, ISE Baby
Microsoft’s
Available Since POSH V2
• SP2010 -> POSH 2; SP2013 -> POSH 3
OS Feature
56
You might have to add the ISE
57
58
PowerShell V3 ISE - for SP2013
59
POSH vs the SharePoint Mgmt Shell
POSH + SnapIn = SharePoint Management Shell
60
Where is it?
61
62
Demo – ISE Debugging
63
Visual Studio 2012 Update 3
Integration with TFS
For SharePoint developers, tool of choice
Add-ons available
64
65
66
67
PowerGUI
Created for POSH v1
originally
Free & large community
support
Lots of Add-ons
• SCCS in Pro
68
69
PowerGUI screen shot
70
Idera’s PowerShell Plus
Free with ads for Idera’s other products
Includes support for SP2010, but not 2013
Framework Dependecy….
Lots of features…. Bloated Overkill?
71
72
Sapien’s PowerShell Studio
Trial requires special trial license in a VM
Does create a POSH Library
73
74
Sapien Bonus
75
Conclusion on POSH IDEs
76
77
Best Practices
• Follow the Verb-Noun pattern1
• Comment Your Functions2
• Write your scripts as functions that
announce themselves
•Make accidentals runs harmless
3
• Use Source Control4
78
Verb-Noun = Action-Thing
Add
Backup
Clear
Connect
Convert
Copy
Disable
Disconnect
Dismount
Enable
Etc…
SPAppDeniedEndpoint
SPClaimTypeMapping
SPDiagnosticsPerformanceCo
unter
SPDistributedCacheServiceIns
tance
SPEduClassMember
SPEduUser
SPInfoPathUserAgent
SPPluggableSecurityTrimmer
SPProfileLeader
SPProfileSyncConnection
Etc…
42 verbs combined with 347 nouns to give us 799 cmdlets
79
Comment your functions
<#
.SYNOPSIS –a brief explanation of what the script or function does.
.DESCRIPTION – a more detailed explanation of what the script or function
does.
.PARAMETER name – an explanation of a specific parameter. Replace name
with the parameter name. You can have one of these sections for each
parameter the script or function uses.
.EXAMPLE – an example of how to use the script or function. You can have
multiple .EXAMPLE sections if you want to provide more than one example.
.NOTES – any miscellaneous notes on using the script or function.
.LINK – a cross-reference to another help topic; you can have more than one
of these. If you include a URL beginning with http:// or https://, the shell will
open that URL when the Help command’s –online parameter is used.
#>
80
81
Find custom commands this way
Refresh the command list
Actions you can take once
you fill in parameters
82
More Good Ideas
Always read scripts before running them
Make it safe for others to not read them first
Write scripts as functions most of the time
Check for valid parameter values
Do error handling
83
Demo
Writing Functions
Using Comments for Documentation
TFS DEMO
Check In, Out, Diff
85
86
Now for More Examples
Jack’s take on Doc Lib Versioning – reporting &
setting
Bulk Site Creation
Email
Logging
SSL Cert Expiration Warning
Deploy WSPs
DEMO
Doc Lib Versioning
88
Bulk Site Creation
Site Definitions in V. Studio
Not an answer by themselves
Define site content
Intended for reuse
Mismatch to one time need
CAML and PITA
Harder: Making it data driven
Change Site Def -> Recreate Site
PowerShell & Excel & UI
Well suited for one time “blow
in’s”
Define the site template in the
UI or use standard
Save as a template
Even pub sites - sometimes
PowerShell has easy loops
Data driven from a CSV
Changes -> Mod Scripts
89
The PowerShell Solution
Read the list of sites from CSV
Loop:
Create Site
Configure Site
Turn on Features
Set Master Pages, Welcome Page
Hide Libraries, set versioning
Adjust Navigation
Add Lists, Libraries, Pages, Web parts, etc
Loop again & again if needed – iterative!
DEMO
Bulk Site Creation
Jack’s Favorite Scripts
Logging, Deployment, & more
92
Chapter 5
Resources
Microsoft Resources
3rd Party Resources
94
95
96
97
98
99
100
101
102
Resources Summary
MSFT
PowerShell Product Team Blog
Script Center
Community
Various Books
CodePlex: PSBBs (mine), CodePlex:SPInstaller
Blog.BlumenthalIT.Net
SharePointJack.com
Jeff Hicks , Gary LaPointe, Raymond
Mitchell, Todd Klindt, POSHCODE.ORG, get-
spscripts.com
SPYam
103
Script something today!
It’s Easy to Get
Started!
Learn & Use the
PowerShell Syntax
More Resources
In Review…
104
Questions & Thank You
• Michael Blumenthal
SharePoint Architect
PSC Group, LLC
• MBlumenthal@psclist
ens.com
• psclistens.com
• www.cspug.org
• Twitter:
@MichaelBL
• SPYam
• Jack Fruh
SharePoint Admin
• Jack@SharepointJack.
com
• SPSChicagoSuburbs.com
• SharePointJack.com
• Twitter:
@SharePointJack
• SPYam
Thank you for your time today.

Contenu connexe

Tendances

TechEd Africa 2011 - OFC307: Architecting a Disaster Tolerant and Highly Avai...
TechEd Africa 2011 - OFC307: Architecting a Disaster Tolerant and Highly Avai...TechEd Africa 2011 - OFC307: Architecting a Disaster Tolerant and Highly Avai...
TechEd Africa 2011 - OFC307: Architecting a Disaster Tolerant and Highly Avai...
Michael Noel
 
SharePoint Server 2013 Farm Architecture and Performance by Ben Curry - SPTec...
SharePoint Server 2013 Farm Architecture and Performance by Ben Curry - SPTec...SharePoint Server 2013 Farm Architecture and Performance by Ben Curry - SPTec...
SharePoint Server 2013 Farm Architecture and Performance by Ben Curry - SPTec...
SPTechCon
 
Acing application lifecycle management in SharePoint
Acing application lifecycle management in SharePointAcing application lifecycle management in SharePoint
Acing application lifecycle management in SharePoint
Jeremy Thake
 
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
Ivan Sanders
 

Tendances (20)

TechEd Africa 2011 - OFC307: Architecting a Disaster Tolerant and Highly Avai...
TechEd Africa 2011 - OFC307: Architecting a Disaster Tolerant and Highly Avai...TechEd Africa 2011 - OFC307: Architecting a Disaster Tolerant and Highly Avai...
TechEd Africa 2011 - OFC307: Architecting a Disaster Tolerant and Highly Avai...
 
SharePoint Server 2013 Farm Architecture and Performance by Ben Curry - SPTec...
SharePoint Server 2013 Farm Architecture and Performance by Ben Curry - SPTec...SharePoint Server 2013 Farm Architecture and Performance by Ben Curry - SPTec...
SharePoint Server 2013 Farm Architecture and Performance by Ben Curry - SPTec...
 
Acing application lifecycle management in SharePoint
Acing application lifecycle management in SharePointAcing application lifecycle management in SharePoint
Acing application lifecycle management in SharePoint
 
Brochure - Microsoft Business Intelligence and Analytics
Brochure - Microsoft Business Intelligence and AnalyticsBrochure - Microsoft Business Intelligence and Analytics
Brochure - Microsoft Business Intelligence and Analytics
 
SharePoint Programming Basic
SharePoint Programming BasicSharePoint Programming Basic
SharePoint Programming Basic
 
SharePoint Saturday NYC - Business Intelligence
SharePoint Saturday NYC - Business IntelligenceSharePoint Saturday NYC - Business Intelligence
SharePoint Saturday NYC - Business Intelligence
 
How to best setup SharePoint 2013, Web Apps, Workflow Manager with Powershell
How to best setup SharePoint 2013, Web Apps, Workflow Manager with PowershellHow to best setup SharePoint 2013, Web Apps, Workflow Manager with Powershell
How to best setup SharePoint 2013, Web Apps, Workflow Manager with Powershell
 
Sharepoint as a service platform
Sharepoint as a service platformSharepoint as a service platform
Sharepoint as a service platform
 
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
SharePoint 2016 Adoption - Lessons Learned and Advanced TroubleshootingSharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
 
SharePoint 2013 Sneak Peek
SharePoint 2013 Sneak PeekSharePoint 2013 Sneak Peek
SharePoint 2013 Sneak Peek
 
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 2: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
 
SharePoint 2013 App Provisioning Models
SharePoint 2013 App Provisioning ModelsSharePoint 2013 App Provisioning Models
SharePoint 2013 App Provisioning Models
 
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
 
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
 
SharePoint and Azure - A Match Made in the Clouds
SharePoint and Azure - A Match Made in the CloudsSharePoint and Azure - A Match Made in the Clouds
SharePoint and Azure - A Match Made in the Clouds
 
SharePoint On-Premises Nirvana
SharePoint On-Premises NirvanaSharePoint On-Premises Nirvana
SharePoint On-Premises Nirvana
 
SharePoint 2010 best practices for infrastructure deployments SharePoint Sat...
SharePoint 2010 best practices for infrastructure deployments  SharePoint Sat...SharePoint 2010 best practices for infrastructure deployments  SharePoint Sat...
SharePoint 2010 best practices for infrastructure deployments SharePoint Sat...
 
Using Visual Studio to Build SharePoint 2010 Solutions
Using Visual Studio to Build SharePoint 2010 SolutionsUsing Visual Studio to Build SharePoint 2010 Solutions
Using Visual Studio to Build SharePoint 2010 Solutions
 
How to upgrade from SharePoint 2010 to SharePoint 2013 – a quick guide
How to upgrade from SharePoint 2010 to SharePoint 2013 – a quick guideHow to upgrade from SharePoint 2010 to SharePoint 2013 – a quick guide
How to upgrade from SharePoint 2010 to SharePoint 2013 – a quick guide
 
SharePoint 2010 for Business, Intranet Leadership Forum
SharePoint 2010 for Business, Intranet Leadership ForumSharePoint 2010 for Business, Intranet Leadership Forum
SharePoint 2010 for Business, Intranet Leadership Forum
 

Similaire à Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop

Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with PowershellBrian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with PowershellBrian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopers
Bryan Cafferky
 
Power shell for sp admins
Power shell for sp adminsPower shell for sp admins
Power shell for sp admins
Rick Taylor
 

Similaire à Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop (20)

Introduction to PowerShell for SharePoint - SharePointFest 2014 workshop
Introduction to PowerShell for SharePoint - SharePointFest 2014 workshopIntroduction to PowerShell for SharePoint - SharePointFest 2014 workshop
Introduction to PowerShell for SharePoint - SharePointFest 2014 workshop
 
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
Introduction to PowerShell for SharePoint Admins and Developers - SharePoint ...
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with PowershellBrian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with PowershellBrian Jackett: Managing SharePoint 2010 Farms with Powershell
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
 
Sql Server & PowerShell
Sql Server & PowerShellSql Server & PowerShell
Sql Server & PowerShell
 
Intro to SharePoint + PowerShell
Intro to SharePoint + PowerShellIntro to SharePoint + PowerShell
Intro to SharePoint + PowerShell
 
NZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePoint
 
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
 
A Beginner's Guide to Client Side Development with Javascript
A Beginner's Guide to Client Side Development with JavascriptA Beginner's Guide to Client Side Development with Javascript
A Beginner's Guide to Client Side Development with Javascript
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopers
 
Using PowerShell for SharePoint 2013
Using PowerShell for SharePoint 2013Using PowerShell for SharePoint 2013
Using PowerShell for SharePoint 2013
 
Intro to PowerShell
Intro to PowerShellIntro to PowerShell
Intro to PowerShell
 
Introduction to PowerShell for SharePoint Admins and Developers
Introduction to PowerShell for SharePoint Admins and DevelopersIntroduction to PowerShell for SharePoint Admins and Developers
Introduction to PowerShell for SharePoint Admins and Developers
 
Power shell for sp admins
Power shell for sp adminsPower shell for sp admins
Power shell for sp admins
 
Windows Server 2008 (PowerShell Scripting Uygulamaları)
Windows Server 2008 (PowerShell Scripting Uygulamaları)Windows Server 2008 (PowerShell Scripting Uygulamaları)
Windows Server 2008 (PowerShell Scripting Uygulamaları)
 
Supercharge PBCS with PowerShell
Supercharge PBCS with PowerShellSupercharge PBCS with PowerShell
Supercharge PBCS with PowerShell
 
Mastering Office 365 with PowerShell - TechDays Finland 2020
Mastering Office 365 with PowerShell -  TechDays Finland 2020Mastering Office 365 with PowerShell -  TechDays Finland 2020
Mastering Office 365 with PowerShell - TechDays Finland 2020
 
Best practices and tools for PowerShell and SharePoint Scripting SharePointFe...
Best practices and tools for PowerShell and SharePoint Scripting SharePointFe...Best practices and tools for PowerShell and SharePoint Scripting SharePointFe...
Best practices and tools for PowerShell and SharePoint Scripting SharePointFe...
 
Managing SharePoint Anywhere with Windows PowerShell
Managing SharePoint Anywhere with Windows PowerShellManaging SharePoint Anywhere with Windows PowerShell
Managing SharePoint Anywhere with Windows PowerShell
 

Plus de Michael Blumenthal (Microsoft MVP)

Plus de Michael Blumenthal (Microsoft MVP) (20)

Tracking what's new and next for Teams in Your tenant.pptx
Tracking what's new and next for Teams in Your tenant.pptxTracking what's new and next for Teams in Your tenant.pptx
Tracking what's new and next for Teams in Your tenant.pptx
 
Collaboration Fundamentals - ALI Modern Intranets May 2023
Collaboration Fundamentals - ALI Modern Intranets May 2023Collaboration Fundamentals - ALI Modern Intranets May 2023
Collaboration Fundamentals - ALI Modern Intranets May 2023
 
Hidden Gems of Office - Teams Day Online Sept 2022
Hidden Gems of Office - Teams Day Online Sept 2022Hidden Gems of Office - Teams Day Online Sept 2022
Hidden Gems of Office - Teams Day Online Sept 2022
 
So You Think You Have OneDrive Deployed.pptx
So You Think You Have OneDrive Deployed.pptxSo You Think You Have OneDrive Deployed.pptx
So You Think You Have OneDrive Deployed.pptx
 
Toastmasters Word of the Day - Feghoot.pptx
Toastmasters Word of the Day - Feghoot.pptxToastmasters Word of the Day - Feghoot.pptx
Toastmasters Word of the Day - Feghoot.pptx
 
10 Tips to Make You A Better Speaker.pptx
10 Tips to Make You A Better Speaker.pptx10 Tips to Make You A Better Speaker.pptx
10 Tips to Make You A Better Speaker.pptx
 
Hidden Gems of Microsoft Office
Hidden Gems of Microsoft OfficeHidden Gems of Microsoft Office
Hidden Gems of Microsoft Office
 
October 2020 Office 365 Adoption Users Group meeting agenda
October 2020 Office 365 Adoption Users Group meeting agendaOctober 2020 Office 365 Adoption Users Group meeting agenda
October 2020 Office 365 Adoption Users Group meeting agenda
 
August 2020 Office 365 Adoption Users Group meeting agenda
August 2020 Office 365 Adoption Users Group meeting agendaAugust 2020 Office 365 Adoption Users Group meeting agenda
August 2020 Office 365 Adoption Users Group meeting agenda
 
Lessons Learned while Deploying OneDrive Sync
Lessons Learned while Deploying OneDrive SyncLessons Learned while Deploying OneDrive Sync
Lessons Learned while Deploying OneDrive Sync
 
2020 July Office 365 AI news for the Midwest AI Group (MAIG)
2020 July Office 365 AI news for the Midwest AI Group (MAIG)2020 July Office 365 AI news for the Midwest AI Group (MAIG)
2020 July Office 365 AI news for the Midwest AI Group (MAIG)
 
June 2020 Office 365 Adoption User Group meeting agenda
June 2020 Office 365 Adoption User Group meeting agendaJune 2020 Office 365 Adoption User Group meeting agenda
June 2020 Office 365 Adoption User Group meeting agenda
 
May 2020 Office 365 Adoption User Group Meeting Agenda
May 2020 Office 365 Adoption User Group Meeting AgendaMay 2020 Office 365 Adoption User Group Meeting Agenda
May 2020 Office 365 Adoption User Group Meeting Agenda
 
M365 The Tour Israel: Deploying OneDrive Sync
M365 The Tour Israel: Deploying OneDrive SyncM365 The Tour Israel: Deploying OneDrive Sync
M365 The Tour Israel: Deploying OneDrive Sync
 
April 2020 Office 365 Adoption Users Group meeting agenda
April 2020 Office 365 Adoption Users Group meeting agendaApril 2020 Office 365 Adoption Users Group meeting agenda
April 2020 Office 365 Adoption Users Group meeting agenda
 
Overview of Office 365: The Elephant in the Room
Overview of Office 365: The Elephant in the RoomOverview of Office 365: The Elephant in the Room
Overview of Office 365: The Elephant in the Room
 
Deploying OneDrive Sync
Deploying OneDrive SyncDeploying OneDrive Sync
Deploying OneDrive Sync
 
February 2020 Office 365 Adoption Users Group Sponsor Slides
February 2020 Office 365 Adoption Users Group Sponsor SlidesFebruary 2020 Office 365 Adoption Users Group Sponsor Slides
February 2020 Office 365 Adoption Users Group Sponsor Slides
 
February 2020 Office 365 Adoption Users Group meeting agenda
February 2020 Office 365 Adoption Users Group meeting agendaFebruary 2020 Office 365 Adoption Users Group meeting agenda
February 2020 Office 365 Adoption Users Group meeting agenda
 
January 2020 Office 365 Adoption Users Group (Chicagoland Chapter) Meeting
January 2020 Office 365 Adoption Users Group (Chicagoland Chapter) MeetingJanuary 2020 Office 365 Adoption Users Group (Chicagoland Chapter) Meeting
January 2020 Office 365 Adoption Users Group (Chicagoland Chapter) Meeting
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Dernier (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop

Notes de l'éditeur

  1. Anyone here not done SharePoint development?What kind of development have you done?Who has worked with PowerShell already? Used for what? Your name?Who has worked with other scripting languages?
  2. Every SharePoint Developer needs this!Fast and FlexibleGreat for LastMile Problems. New MSFT std for Scripting
  3. Who would like another tool in their toolbox, one that will help them with SharePoint, but also with many other things? How about the swiss army knife of tools?It will make you a better developer!
  4. Who here already has installed and PowerShell? Who’s using Server 2003? 2008?Win 2003: http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspxWin 2008 – It’s an OS Feature – “servermanagercmd –install PowerShell”V3 is here
  5. One is SharePoint aware, the other isn’t!
  6. Does anyone have any other names for these?Victor Borge has his own take on these: http://www.youtube.com/watch?v=lF4qii8S3gw
  7. Name that Language…Similar to @variables in SQL, apparently also Ruby, PHP.Arrays start at 0
  8. Mention Aliases
  9. Ask if anyone has unix scripting experience, and what they think of this.Can you imagine trying to do this in unix or vbscript?
  10. Get-Help about_flow_controlMention that collections start at 0
  11. Ask if anyone has unix scripting experience, and what they think of this.Can you imagine trying to do this in unix or vbscript?
  12. If you are familiar with these objects, raise your hand.
  13. Your mother doesn’t work here! You must clean up after yourself.
  14. http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?PageType=4&amp;ListId={72C1C85B-1D2D-4A4A-90DE-CA74A7808184}&amp;pID=524http://msdn.microsoft.com/en-us/library/ee557362.aspxSee Assignment collections - http://technet.microsoft.com/en-us/library/ff607664.aspx
  15. Who would like another tool in their toolbox, one that will help them with SharePoint, but also with many other things? How about the swiss army knife of tools?It will make you a better developer!
  16. Who here already has installed and PowerShell? Who’s using Server 2003? 2008?Win 2003: http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspxWin 2008 – It’s an OS Feature – “servermanagercmd –install PowerShell”V3 is here
  17. One is SharePoint aware, the other isn’t!
  18. It’s got a Watch Window
  19. http://technet.microsoft.com/en-us/magazine/ff458353.aspx
  20. Try to use an existing verb. You can make your own Noun Prefix if you want.
  21. about_comment_based_help
  22. Jack
  23. Michael
  24. Once used a choice column’s values instead of a CSV
  25. Michael
  26. Jack
  27. Windows PowerShell in Action by Bruce Payette, V2Since then Hicks and Jones have written some good ones
  28. http://technet.microsoft.com/en-us/scriptcenter/default
  29. http://www.codeplex.com/psbb
  30. Blog.blumenthalit.comBlog.blumenthalit.com/files/powershellhttp://blog.blumenthalit.com/blog/Lists/Posts/Post.aspx?ID=161, etc
  31. Also:PoshCode.OrgTechNet Script Center http://www.microsoft.com/technet/scriptcenter/default.mspx MSDN SharePoint Developer Center http://msdn.microsoft.com/en-us/office/aa905503.aspx Zach Rosenfield’s Blog - http://sharepoint.microsoft.com/blogs/zach/default.aspxhttp://blog.falchionconsulting.com/http://www.powergui.org/downloads.jspahttp://thepowershellguy.com/blogs/posh/pages/powertab.aspx
  32. You owe it to yourself to try out PowerShell.It will make you a better developer!