SlideShare a Scribd company logo
Introduction To PowershellPaul H CassidyTest Automation LeadFront Porch – Sonora, CAhttp://www.twitter.com/qa_warrior
AgendaIntroduce PowerShellLearn to investigate and explore PowerShellDemo’s showing a bit of what is possible with PowerShell
Windows PowerShellA command line and scripting languageAs interactive and engaging as BASH/KSHAs programmatic as Perl/Python/Ruby
State of the Software - CommunityActive and useful Newsgroups and Forums
 Lots of active Codeplex projects
 Strong group of MVPs
 Strong community tools
Lots of books covering specific and general areasThe Difference is OBJECTS!Get-Process | Where { $_.handles –gt 500 } | Sort handles | Format-TableCommon Windows PowerShell ParserGet-ProcessCmdletSort CmdletFormatCmdletWhere CmdletWindows PowerShell Pipeline Processor
Productivity
Learn and LeverageIn the box documentsRelease NotesGetting Started, User’s Guide, Quick ReferenceHelpDiscovery utilitiesBooksCommunityPractice ad hoc development
Utilities - Discovery
Discovery UtilitiesWindows PowerShelldemo
Utilities – Object Manipulation
Object Manipulations UtilitiesWindows PowerShelldemo
Transformation and Output
Transformation and Output UtilitiesWindows PowerShelldemo
PowerShell provides native access to any .NET classCreate any object[reflection.assembly]::LoadWithPartialName("System.Windows.Forms")$d = New-Object System.DateTime 2006,12,25Access Properties/Invoke Methods$d.DayOfWeek$d.AddDays(-30)Access Statics[DateTime]::Now[DateTime]::IsLeapYear(2008) Scripting with .NETAllows admins to easily access and leverage a huge API set because of scriptability, utilities and formatting
.Net ScriptingWindows PowerShelldemo
Access existing instrumentationBind to COM objects$fso = New-Object -ComObjectScripting.FileSystemObject$m = [System.Runtime.InteropServices.Marshal]$word = $m::GetActiveObject("Word.Application") Invoke methods/access properties$fso.GetDrive(“C:”)$fso.VolumeName = “System Drive”Manipulate and format resultsDefine and import custom formatingUpdate-FormatData  Office.Word.Format.ps1xml$word.RecentFiles | Sort name | Format-Table Scripting with COMAllows more simpler/more powerful COM scripts because of utilities and formatting
PowerShell provides native WMI supportGet-WmiObjectAllows for inspection of WMI namespaceGet-WmiObject –list [-Namespace xx]Get-WmiObject –Class xx –Namespace xx –Property xxx – Filter xxx –ComputerName xxx –Credential xxxNative language support[WMI] “\\JPSDESK10\root\cimv2:Win32_Process.Handle="0“[WMICLASS] "ROOT\cimv2:WIN32_PROCESS"[WMISEARCHER]"select * from Win32_process WHERE Name = 'calc.exe'"Scripting with WMI
WMI ScriptingWindows PowerShelldemo
PowerShell provides native XML support[XML]”<root>…. </root>”Projects a “data-view” of XML Scripting with XML

More Related Content

PPTX
Web application, cookies and sessions
PDF
An Introduction to Symfony
PDF
Php workshop L03 superglobals
PDF
Tml for Objective C
PDF
Php workshop L04 database
PDF
Modern php
ODP
Intro to CouchDB
Web application, cookies and sessions
An Introduction to Symfony
Php workshop L03 superglobals
Tml for Objective C
Php workshop L04 database
Modern php
Intro to CouchDB

What's hot (6)

PDF
API Platform: Full Stack Framework Resurrection
PPTX
Extending eZ Platform 2.x with Symfony and React
PPTX
PHP presentation - Com 585
PPT
Dot netsupport in alpha five v11 coming soon
PDF
A Better WordPress Workflow with WP-CLI
PDF
Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
API Platform: Full Stack Framework Resurrection
Extending eZ Platform 2.x with Symfony and React
PHP presentation - Com 585
Dot netsupport in alpha five v11 coming soon
A Better WordPress Workflow with WP-CLI
Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
Ad

Viewers also liked (8)

PPTX
Introduction to PowerShell at Chicago Code Camp 2015
PPTX
Powershell And B O O For Testers
PPTX
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
PPT
NIIT ISAS Q5 Report - Windows PowerShell
PPT
Powershell Seminar @ ITWorx CuttingEdge Club
PDF
Introduction to PowerShell
PPTX
Building an Empire with PowerShell
PDF
The Top Skills That Can Get You Hired in 2017
Introduction to PowerShell at Chicago Code Camp 2015
Powershell And B O O For Testers
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
NIIT ISAS Q5 Report - Windows PowerShell
Powershell Seminar @ ITWorx CuttingEdge Club
Introduction to PowerShell
Building an Empire with PowerShell
The Top Skills That Can Get You Hired in 2017
Ad

Similar to SVCC 5 introduction to powershell (20)

PPTX
PowerShell 101
PPT
PowerShell Core Skills (TechMentor Fall 2011)
PPTX
PowerShell 101 - What is it and Why should YOU Care!
PPTX
Introduction to powershell
PDF
Sql Server & PowerShell
PPT
No-script PowerShell v2
PPTX
PowerShell-1
PPTX
Introduction To Power Shell
PPT
Introduction to PowerShell
PDF
Windows Powershell in Action 1st Edition Bruce G. Payette
PDF
Windows Powershell in Action 1st Edition Bruce G. Payette
PPTX
2016 spice world_london_breakout
PPTX
Everything you need to know about PowerShell
PPTX
PowerShell 101
PPTX
Power shell training
PDF
Windows Powershell in Action 1st Edition Bruce G. Payette
PDF
PowerShell_LangRef_v3 (1).pdf
PPTX
Getting Started With PowerShell Scripting
PPTX
Powershell Tech Ed2009
PPTX
Holy PowerShell, BATman! - dogfood edition
PowerShell 101
PowerShell Core Skills (TechMentor Fall 2011)
PowerShell 101 - What is it and Why should YOU Care!
Introduction to powershell
Sql Server & PowerShell
No-script PowerShell v2
PowerShell-1
Introduction To Power Shell
Introduction to PowerShell
Windows Powershell in Action 1st Edition Bruce G. Payette
Windows Powershell in Action 1st Edition Bruce G. Payette
2016 spice world_london_breakout
Everything you need to know about PowerShell
PowerShell 101
Power shell training
Windows Powershell in Action 1st Edition Bruce G. Payette
PowerShell_LangRef_v3 (1).pdf
Getting Started With PowerShell Scripting
Powershell Tech Ed2009
Holy PowerShell, BATman! - dogfood edition

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPT
Teaching material agriculture food technology
PPTX
Big Data Technologies - Introduction.pptx
Encapsulation_ Review paper, used for researhc scholars
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
NewMind AI Weekly Chronicles - August'25 Week I
Programs and apps: productivity, graphics, security and other tools
The Rise and Fall of 3GPP – Time for a Sabbatical?
Teaching material agriculture food technology
Big Data Technologies - Introduction.pptx

SVCC 5 introduction to powershell

  • 1. Introduction To PowershellPaul H CassidyTest Automation LeadFront Porch – Sonora, CAhttp://www.twitter.com/qa_warrior
  • 2. AgendaIntroduce PowerShellLearn to investigate and explore PowerShellDemo’s showing a bit of what is possible with PowerShell
  • 3. Windows PowerShellA command line and scripting languageAs interactive and engaging as BASH/KSHAs programmatic as Perl/Python/Ruby
  • 4. State of the Software - CommunityActive and useful Newsgroups and Forums
  • 5. Lots of active Codeplex projects
  • 8. Lots of books covering specific and general areasThe Difference is OBJECTS!Get-Process | Where { $_.handles –gt 500 } | Sort handles | Format-TableCommon Windows PowerShell ParserGet-ProcessCmdletSort CmdletFormatCmdletWhere CmdletWindows PowerShell Pipeline Processor
  • 10. Learn and LeverageIn the box documentsRelease NotesGetting Started, User’s Guide, Quick ReferenceHelpDiscovery utilitiesBooksCommunityPractice ad hoc development
  • 13. Utilities – Object Manipulation
  • 16. Transformation and Output UtilitiesWindows PowerShelldemo
  • 17. PowerShell provides native access to any .NET classCreate any object[reflection.assembly]::LoadWithPartialName("System.Windows.Forms")$d = New-Object System.DateTime 2006,12,25Access Properties/Invoke Methods$d.DayOfWeek$d.AddDays(-30)Access Statics[DateTime]::Now[DateTime]::IsLeapYear(2008) Scripting with .NETAllows admins to easily access and leverage a huge API set because of scriptability, utilities and formatting
  • 19. Access existing instrumentationBind to COM objects$fso = New-Object -ComObjectScripting.FileSystemObject$m = [System.Runtime.InteropServices.Marshal]$word = $m::GetActiveObject("Word.Application") Invoke methods/access properties$fso.GetDrive(“C:”)$fso.VolumeName = “System Drive”Manipulate and format resultsDefine and import custom formatingUpdate-FormatData Office.Word.Format.ps1xml$word.RecentFiles | Sort name | Format-Table Scripting with COMAllows more simpler/more powerful COM scripts because of utilities and formatting
  • 20. PowerShell provides native WMI supportGet-WmiObjectAllows for inspection of WMI namespaceGet-WmiObject –list [-Namespace xx]Get-WmiObject –Class xx –Namespace xx –Property xxx – Filter xxx –ComputerName xxx –Credential xxxNative language support[WMI] “\\JPSDESK10\root\cimv2:Win32_Process.Handle="0“[WMICLASS] "ROOT\cimv2:WIN32_PROCESS"[WMISEARCHER]"select * from Win32_process WHERE Name = 'calc.exe'"Scripting with WMI
  • 22. PowerShell provides native XML support[XML]”<root>…. </root>”Projects a “data-view” of XML Scripting with XML
  • 24. Community ResourcesNewsgroup: Microsoft.Public.Windows.PowerShellTeam blog: http://blogs.msdn.com/PowerShell/PowerShell Community: http://www.PowershellCommunity.OrgCommunity Script Repo http://www.poshcode.orgChannel 9 http://channel9.msdn.com/tags/PowerShellWikihttp://channel9.msdn.com/wiki/default.aspx/Channel9.WindowsPowerShellWikiScript Center: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspxCodePlex:http://codeplex.com/Project/ProjectDirectory.aspx?TagName=powershellMany excellent booksManning Press book by PowerShell Dev Lead Bruce Payette: PowerShell in Action http://manning.com/powershell/O’Reilly book by PowerShell Dev Lee Holmes – Windows PowerShell Cookbookhttp://www.oreilly.com/catalog/9780596528492/index.htmlSession Demos for Introduction To Powershell
  • 25. Q&A

Editor's Notes

  • #2: This template can be used as a starter file for presenting training materials in a group setting.SectionsRight-click on a slide to add sections. Sections can help to organize your slides or facilitate collaboration between multiple authors.NotesUse the Notes section for delivery notes or to provide additional details for the audience. View these notes in Presentation View during your presentation. Keep in mind the font size (important for accessibility, visibility, videotaping, and online production)Coordinated colors Pay particular attention to the graphs, charts, and text boxes.Consider that attendees will print in black and white or grayscale. Run a test print to make sure your colors work when printed in pure black and white and grayscale.Graphics, tables, and graphsKeep it simple: If possible, use consistent, non-distracting styles and colors.Label all graphs and tables.