SlideShare a Scribd company logo
PowerShell 101
What is it and why should YOU care?
Thomas Lee
Partner, PS Partnership
@DoctorDNS on Twitter
Agenda
• What IS PowerShell?
• What are Cmdlets, Objects and the Pipeline?
• PowerShell in Windows and Windows Applications
• Why PowerShell Matters to YOU
• Questions
Who am I?
• 17-time MVP – many on PowerShell
• PowerShell Pioneer
– Into PowerShell from the get-go (Oct 2003)
• Author
– PowerShell 2.0 bible with another book in probress
• Trainer
• Admin for PowerShell group on Spiceworks
Why PowerShell?
• PowerShell is the future of Windows
administration
• PowerShell makes your life easier
• PowerShell magnifies your effort
• Let me show you how and why!
But First - What IS PowerShell?
• Microsoft’s Strategic Task Automation Platform for IT Pros
• It contains
–Shell – think Unix like in terms of usefulness
–Scripting Language – with the power of Perl or Ruby
–Extensible – bring on the community
Looking at PowerShell
Cmdlets Objects Pipeline
What are Cmdlets?
• A unit of functionality – much like a Linux command
• Implemented as a .NET Class
– Get some with PowerShell/Windows
– Buy some – e.g. /n Software’s NetCmdlets
– Find some – leverage the community efforts
– Build your own – use C# and VS
Cmdlets (continued)
• Cmdlets named with a Verb-Noun syntax
– Verbs are standard to aid discovery
• Cmdlets can have aliases
– Built in or add your own
– Aliases do NOT include parameter aliasing 
• Cmdlets come from PowerShell, Windows, apps
Cmdlets (continued)
• Cmdlets take parameters
• All parameters have parameter names that
begin with a ‘-’
• Some parameter names can be omitted
• Tab completion is your friend!
• Cmdlets are discoverable
Get-Help, Get-Command
Cmdlets and Modules
• Cmdlets/Functions packaged into modules
• Modules can be dynamically loaded
• You can develop your own modules
What are Objects?
• A computer abstraction of a real life thing
– A process
– An AD User
– A folder
• In PowerShell everything is an object
Objects (continued)
• Objects have occurrences you manage
– The processes running on a computer
– The users in an OU
– The files in a folder
• Objects dramatically simplifies scripting
PowerShell Object Support
• PowerShell supports:
– .NET objects
– COM objects
– WMI objects
– Custom Objects
• Syntax and usage vary – similar, yet different
Objects in PowerShell
• Cmdlets produce and consume objects
– E.g. Get-Process produces objects of the type
System.Diagnostics.Process
• Objects are discoverable
–Get-Member tells you the what an object contains
• Refer to MSDN documentation for more detail
What Is The Pipeline?
• The pipeline connects cmdlets
– One cmdlet outputs objects
– Next cmdlet uses them as input
• Pipeline is not a new concept
– Came From Unix/Linux
– PowerShell Pipes objects not text
Why This Design Matters
• Simple to use – far easier to compose
• Powerful in operation - PowerShell (and .NET) do the
heavy lifting
• Improves integration of functionality stacks
– OS/Application/PowerShell base/Community efforts/etc.
Discovery
• A key concept in PowerShell
• What you know helps you learn more
• PowerShell built to be discoverable
Key Discovery Cmdlets
• Get-Command – helps you to find cmdlet/function
names
• Get-Help – gets you details on a specific
cmdlets/function
• Get-Member – pipe your output to Get-Member to
discover what it is
Cmdlets
Pipeline
Objects
Discovery
Demo Time
PowerShell Community
• You never walk alone => PowerShell ecosystem
– Product teams
– Vendors
• Various ways to engage with the community
– Blogs
– Twitter
– Spiceworks PowerShell forum
PowerShell Language
• PowerShell has a language
• This is used to create scripts, script cmdlets, etc.
• Syntax similar to C#
• Language contains features from Unix/Linux and others
• You need to know the language to write scripts
PowerShell ISE
• A richer development environment
• Does colour coding of syntax
• Good editing features
• Extensible
PowerShell is Everywhere
• Core modules come with Windows
• Additional modules come with Windows features
• More module come with Windows apps
• Even more modules come from the community
How Do I Get PowerShell?
• V3 Built into Win8, Server 2012
• V4 Built into Win 8.1, Server 2012 R2
• V5 in Windows 10
• V5.1 in Win10 AU and Server 2016
• V6.0 Alpha available
Getting Modules
• Some built-in
• Some come with Server feature and/or RSAT tools
• Some downloadable (e.g. Azure)
• Some 3rd party commercial
• Use PowerShellGet module to find and install more!
So Why Does PowerShell Matter?
• Because it’s everywhere!
• It’s faster for repetitive tasks
• It’s repeatable and auditable
• Less prone to error
• It’s easy (once you get past the learning curve)
PowerShell Is Not Universal!
• Windows has over 300 console applications that you
use to administer and manage aspects of Windows
• Many of these have NO equivalent in PowerShell
• Examples include:
– Certutil
– Slmgr.vbs/Ospp.vbs
– Wevtutil.exe
Learning PowerShell
• Books/blogs/forums
• Microsoft and other training courses
• Get your company to sponsor a class
• Learn by doing
So What Next?
• First, remove cmd.exe from your system
– Use PowerShell everywhere
• Use PowerShell for as much as you can
– Ask questions on Spiceworks
• Master PowerShell
– Advance your career
Summary
• If you are an IT Pro in the Windows space you need to
either
– Learn PowerShell
– Learn how to smile when you say ‘would you like fries with
that burger’
PowerShell 101 - What is it and Why should YOU Care!
PowerShell 101 - What is it and Why should YOU Care!
PowerShell 101 - What is it and Why should YOU Care!

More Related Content

PDF
Powershell training material
PPTX
PowerShell Plus v4.7 Overview
PPTX
Harness: PowerShell Weaponization Made Easy (or at least easier)
PPTX
Power shell training
PPTX
Holy PowerShell, BATman! - dogfood edition
PPTX
PHP Frameworks, or how I learnt to stop worrying and love the code
PDF
Stackato v6
PDF
Php Dependency Management with Composer ZendCon 2016
Powershell training material
PowerShell Plus v4.7 Overview
Harness: PowerShell Weaponization Made Easy (or at least easier)
Power shell training
Holy PowerShell, BATman! - dogfood edition
PHP Frameworks, or how I learnt to stop worrying and love the code
Stackato v6
Php Dependency Management with Composer ZendCon 2016

What's hot (18)

PDF
Telosys project booster Paris Open Source Summit 2019
PPTX
A walkthrough of JavaScript ES6 features
PPTX
PuppetConf 2016: How Not to Freak Out When You Start Writing Puppet Modules f...
PDF
PuppetConf 2016: Easily Manage Software on Windows with Chocolatey – Rob Reyn...
PDF
A Taste of Pharo 7.0
PDF
Perl-Critic
PPTX
Test driven development v1.0
ODP
2017 DevSecCon ZAP Scripting Workshop
PDF
KYSUC - Keep Your Schema Under Control
PPTX
Managing modular software for your nu get, c++ and java development
PDF
UKLUG 2012 - XPages, Beyond the basics
PDF
Laravel and Django and Rails, Oh My!
PDF
Automate Thyself
PPT
Zend Framework
PPTX
Dd13.2013.milano.open ntf
PPT
Selenium Java for Beginners by Sujit Pathak
PDF
Dr. Strangelove, or how I learned to love plugin development
PPTX
QA Fes 2016. Александр Хотемской. Обзор ProtractorJS как фреймворка для брауз...
Telosys project booster Paris Open Source Summit 2019
A walkthrough of JavaScript ES6 features
PuppetConf 2016: How Not to Freak Out When You Start Writing Puppet Modules f...
PuppetConf 2016: Easily Manage Software on Windows with Chocolatey – Rob Reyn...
A Taste of Pharo 7.0
Perl-Critic
Test driven development v1.0
2017 DevSecCon ZAP Scripting Workshop
KYSUC - Keep Your Schema Under Control
Managing modular software for your nu get, c++ and java development
UKLUG 2012 - XPages, Beyond the basics
Laravel and Django and Rails, Oh My!
Automate Thyself
Zend Framework
Dd13.2013.milano.open ntf
Selenium Java for Beginners by Sujit Pathak
Dr. Strangelove, or how I learned to love plugin development
QA Fes 2016. Александр Хотемской. Обзор ProtractorJS как фреймворка для брауз...
Ad

Viewers also liked (20)

PDF
Practical PowerShell Programming for Professional People
PPTX
Building an Empire with PowerShell
PPTX
Office 365 & PowerShell - A match made in heaven
PDF
Practical PowerShell Programming for Professional People - Extended Edition
PPT
Powershell Seminar @ ITWorx CuttingEdge Club
PDF
Power on, Powershell
PPTX
Better, Faster, Stronger! Boost Your Team-Based SharePoint Development Using ...
PPT
Windows Server 2008 (PowerShell Scripting Uygulamaları)
PDF
PowerShell from *nix user perspective
PPT
Managing Virtual Infrastructures With PowerShell
PDF
PowerShell UIAtomation
PPTX
PowerShell 101
PPTX
Incorporating PowerShell into your Arsenal with PS>Attack
PPTX
Getting Started With PowerShell Scripting
PDF
Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012
PPT
Introduction to PowerShell
PPTX
Geek Sync | Using PowerShell with Python and SQL Server
PPTX
Network Mapping with PowerShell
PDF
Gray Hat PowerShell - ShowMeCon 2015
PPTX
Workshop: PowerShell for Penetration Testers
Practical PowerShell Programming for Professional People
Building an Empire with PowerShell
Office 365 & PowerShell - A match made in heaven
Practical PowerShell Programming for Professional People - Extended Edition
Powershell Seminar @ ITWorx CuttingEdge Club
Power on, Powershell
Better, Faster, Stronger! Boost Your Team-Based SharePoint Development Using ...
Windows Server 2008 (PowerShell Scripting Uygulamaları)
PowerShell from *nix user perspective
Managing Virtual Infrastructures With PowerShell
PowerShell UIAtomation
PowerShell 101
Incorporating PowerShell into your Arsenal with PS>Attack
Getting Started With PowerShell Scripting
Windows - Having Its Ass Kicked by Puppet and PowerShell Since 2012
Introduction to PowerShell
Geek Sync | Using PowerShell with Python and SQL Server
Network Mapping with PowerShell
Gray Hat PowerShell - ShowMeCon 2015
Workshop: PowerShell for Penetration Testers
Ad

Similar to PowerShell 101 - What is it and Why should YOU Care! (20)

PPTX
2016 spice world_london_breakout
PPTX
2014 SpiceWorld London Breakout
PPTX
2015 spice world_london_breakout
PDF
DevOps: What is This Puppet You Speak Of?
PPT
Introduction_to_NET.ppt
PPTX
Community day 2013 applied architectures
PPTX
Introduction to PowerShell and getting started
PPTX
Professional Help for PowerShell Modules
PPTX
PowerShell for Penetration Testers
PPTX
Top 10 dev ops tools (1)
PDF
CNIT 126 Ch 7: Analyzing Malicious Windows Programs
PPTX
01 dont fear the shell 1
PDF
Puppet latest and greatest
PPT
Movingto moodle2 v1 1
PPTX
Introducing PS>Attack: An offensive PowerShell toolkit
PPTX
Managing PowerShell DSC with Puppet
PPTX
Power shell basics day1
PPTX
Big datatraining.in devops-part1
PPTX
Big datatraining.in devops-part1
PPTX
Big datatraining.in devops-part1
2016 spice world_london_breakout
2014 SpiceWorld London Breakout
2015 spice world_london_breakout
DevOps: What is This Puppet You Speak Of?
Introduction_to_NET.ppt
Community day 2013 applied architectures
Introduction to PowerShell and getting started
Professional Help for PowerShell Modules
PowerShell for Penetration Testers
Top 10 dev ops tools (1)
CNIT 126 Ch 7: Analyzing Malicious Windows Programs
01 dont fear the shell 1
Puppet latest and greatest
Movingto moodle2 v1 1
Introducing PS>Attack: An offensive PowerShell toolkit
Managing PowerShell DSC with Puppet
Power shell basics day1
Big datatraining.in devops-part1
Big datatraining.in devops-part1
Big datatraining.in devops-part1

More from Thomas Lee (7)

PPTX
Doing Azure With PowerShell
PPTX
Three cool cmdlets I wish PowerShell Had!
PPTX
PowerShell 101
PPTX
Formatting With PowerShell
PPTX
Top 10 PowerShell Features in Server 2012
PPTX
Coping with Murphy’s Law
PPTX
Deep dive formatting
Doing Azure With PowerShell
Three cool cmdlets I wish PowerShell Had!
PowerShell 101
Formatting With PowerShell
Top 10 PowerShell Features in Server 2012
Coping with Murphy’s Law
Deep dive formatting

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
KodekX | Application Modernization Development
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Agricultural_Statistics_at_a_Glance_2022_0.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
KodekX | Application Modernization Development
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
Electronic commerce courselecture one. Pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Dropbox Q2 2025 Financial Results & Investor Presentation
Building Integrated photovoltaic BIPV_UPV.pdf

PowerShell 101 - What is it and Why should YOU Care!

  • 1. PowerShell 101 What is it and why should YOU care? Thomas Lee Partner, PS Partnership @DoctorDNS on Twitter
  • 2. Agenda • What IS PowerShell? • What are Cmdlets, Objects and the Pipeline? • PowerShell in Windows and Windows Applications • Why PowerShell Matters to YOU • Questions
  • 3. Who am I? • 17-time MVP – many on PowerShell • PowerShell Pioneer – Into PowerShell from the get-go (Oct 2003) • Author – PowerShell 2.0 bible with another book in probress • Trainer • Admin for PowerShell group on Spiceworks
  • 4. Why PowerShell? • PowerShell is the future of Windows administration • PowerShell makes your life easier • PowerShell magnifies your effort • Let me show you how and why!
  • 5. But First - What IS PowerShell? • Microsoft’s Strategic Task Automation Platform for IT Pros • It contains –Shell – think Unix like in terms of usefulness –Scripting Language – with the power of Perl or Ruby –Extensible – bring on the community
  • 6. Looking at PowerShell Cmdlets Objects Pipeline
  • 7. What are Cmdlets? • A unit of functionality – much like a Linux command • Implemented as a .NET Class – Get some with PowerShell/Windows – Buy some – e.g. /n Software’s NetCmdlets – Find some – leverage the community efforts – Build your own – use C# and VS
  • 8. Cmdlets (continued) • Cmdlets named with a Verb-Noun syntax – Verbs are standard to aid discovery • Cmdlets can have aliases – Built in or add your own – Aliases do NOT include parameter aliasing  • Cmdlets come from PowerShell, Windows, apps
  • 9. Cmdlets (continued) • Cmdlets take parameters • All parameters have parameter names that begin with a ‘-’ • Some parameter names can be omitted • Tab completion is your friend! • Cmdlets are discoverable Get-Help, Get-Command
  • 10. Cmdlets and Modules • Cmdlets/Functions packaged into modules • Modules can be dynamically loaded • You can develop your own modules
  • 11. What are Objects? • A computer abstraction of a real life thing – A process – An AD User – A folder • In PowerShell everything is an object
  • 12. Objects (continued) • Objects have occurrences you manage – The processes running on a computer – The users in an OU – The files in a folder • Objects dramatically simplifies scripting
  • 13. PowerShell Object Support • PowerShell supports: – .NET objects – COM objects – WMI objects – Custom Objects • Syntax and usage vary – similar, yet different
  • 14. Objects in PowerShell • Cmdlets produce and consume objects – E.g. Get-Process produces objects of the type System.Diagnostics.Process • Objects are discoverable –Get-Member tells you the what an object contains • Refer to MSDN documentation for more detail
  • 15. What Is The Pipeline? • The pipeline connects cmdlets – One cmdlet outputs objects – Next cmdlet uses them as input • Pipeline is not a new concept – Came From Unix/Linux – PowerShell Pipes objects not text
  • 16. Why This Design Matters • Simple to use – far easier to compose • Powerful in operation - PowerShell (and .NET) do the heavy lifting • Improves integration of functionality stacks – OS/Application/PowerShell base/Community efforts/etc.
  • 17. Discovery • A key concept in PowerShell • What you know helps you learn more • PowerShell built to be discoverable
  • 18. Key Discovery Cmdlets • Get-Command – helps you to find cmdlet/function names • Get-Help – gets you details on a specific cmdlets/function • Get-Member – pipe your output to Get-Member to discover what it is
  • 20. PowerShell Community • You never walk alone => PowerShell ecosystem – Product teams – Vendors • Various ways to engage with the community – Blogs – Twitter – Spiceworks PowerShell forum
  • 21. PowerShell Language • PowerShell has a language • This is used to create scripts, script cmdlets, etc. • Syntax similar to C# • Language contains features from Unix/Linux and others • You need to know the language to write scripts
  • 22. PowerShell ISE • A richer development environment • Does colour coding of syntax • Good editing features • Extensible
  • 23. PowerShell is Everywhere • Core modules come with Windows • Additional modules come with Windows features • More module come with Windows apps • Even more modules come from the community
  • 24. How Do I Get PowerShell? • V3 Built into Win8, Server 2012 • V4 Built into Win 8.1, Server 2012 R2 • V5 in Windows 10 • V5.1 in Win10 AU and Server 2016 • V6.0 Alpha available
  • 25. Getting Modules • Some built-in • Some come with Server feature and/or RSAT tools • Some downloadable (e.g. Azure) • Some 3rd party commercial • Use PowerShellGet module to find and install more!
  • 26. So Why Does PowerShell Matter? • Because it’s everywhere! • It’s faster for repetitive tasks • It’s repeatable and auditable • Less prone to error • It’s easy (once you get past the learning curve)
  • 27. PowerShell Is Not Universal! • Windows has over 300 console applications that you use to administer and manage aspects of Windows • Many of these have NO equivalent in PowerShell • Examples include: – Certutil – Slmgr.vbs/Ospp.vbs – Wevtutil.exe
  • 28. Learning PowerShell • Books/blogs/forums • Microsoft and other training courses • Get your company to sponsor a class • Learn by doing
  • 29. So What Next? • First, remove cmd.exe from your system – Use PowerShell everywhere • Use PowerShell for as much as you can – Ask questions on Spiceworks • Master PowerShell – Advance your career
  • 30. Summary • If you are an IT Pro in the Windows space you need to either – Learn PowerShell – Learn how to smile when you say ‘would you like fries with that burger’