230 likes | 374 Views
PowerShell for Dummies. Kurt Callemin. WHO AM I ?. Kurt Callemin Final year student at KHBO: Master of Science Electronics- ICT Microsoft Student Partner since 2009 Developer Blog: http://www.ckurt.net Yelper: http://www.yelper.be/C_Kurt Twitter: C_Kurt. AGENDA.
E N D
PowerShell for Dummies Kurt Callemin
WHO AM I ? • Kurt Callemin • Final year student at KHBO: Master of Science Electronics- ICT • Microsoft Student Partner since 2009 • Developer • Blog: http://www.ckurt.net • Yelper: http://www.yelper.be/C_Kurt • Twitter: C_Kurt
AGENDA • Introduction to PowerShell • Learn to investigate and explore PowerShell • Drill into utilities cmdlets
WINDOWS POWERSHELL • New command line and scripting language • Interactive and Composable • Programmatic • Production Oriented
Short Introduction DEMO 1 6
OBJECTS “An object is a collection of parts and how to use them” Parts Properties Parts How to use How to use Methods Front Wheel Pedal Back Wheel Steer Left Pedals Steer Right Saddle Apply Front Brake Frame Apply Rear Brake 7
OBJECTS Parts Properties How to use Methods Stop() DisplayName Windows Service Status Start() RequiredServices Pause() 8
ARRAYS • Data structurethatholdsother objects • Each object in itsowncompartment • Access compartmentsusing [] $Processes = Get-Process Object Object Object Object Object $Processes[4].name $Processes[0].name 9
THE KIND OF OBJECTS Get-Process | Where { $_.handles –gt 500 } | Sort handles | Format-Table Common Windows PowerShell Parser Get-ProcessCmdlet Where Cmdlet FormatCmdlet Sort Cmdlet Windows PowerShell Pipeline Processor 10
Workingwith Objects DEMO 2 11
LEARN AND LEVERAGE • In the box documents • PowerShell_ISE Help • Getting Started • User’s Guide • About Help • Cmdlet Help • Provider Help • Discovery utilities • Books • Community • Practice ad hoc development 12
Discovery Utilities DEMO 3 14
Object Manipulation Utilities DEMO 4 16
Transformationand Output Utilities DEMO 5 18
Summary • Nowavailable at: www.microsoft.com/downloads • Search forPowerShell • Tryit, Deployit, Useit, Share • More Sessions: Scripting • http://www.msteched.com/2010/NorthAmerica/WSV401 • http://www.msteched.com/2010/NorthAmerica/OSP402 19
POWERSHELL COMMUNITY • Newsgroup: Microsoft.Public.Windows.PowerShell • Team blog: http://blogs.msdn.com/PowerShell/ • PowerShellCommunity.Org: http://www.PowershellCommunity.Org • Channel 9 http://channel9.msdn.com/tags/PowerShell • Wiki • http://channel9.msdn.com/wiki/default.aspx/Channel9.WindowsPowerShellWiki • Script Center: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx • CodePlex: • http://codeplex.com/Project/ProjectDirectory.aspx?TagName=powershell • Many excellent books • Manning 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 Cookbook • http://www.oreilly.com/catalog/9780596528492/index.html 20
Thankyou! Pleasefill out sessionevaluations 21