Top Banner
LearningPowerShell.com PowerShell Bangalore User Group (PSBUG) Inaugural meet – 28 th , July 2012 http://twitter.com/ psbug
26

Introduction to PowerShell and getting started

May 24, 2015

Download

Technology

This was the deck used for PowerShell Bangalore User Group (PSBUG) inaugural meeting.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to PowerShell and getting started

LearningPowerShell.com

PowerShell Bangalore User Group (PSBUG)

Inaugural meet – 28th, July 2012

http://twitter.com/psbug

Page 2: Introduction to PowerShell and getting started

LearningPowerShell.com

Agenda

• Introduction to PowerShell• Getting Started with PowerShell• Break• From the Community!• Give aways• PSBUG - The road ahead!

Page 3: Introduction to PowerShell and getting started

LearningPowerShell.com

Introduction to PowerShell

Ravikanth Chaganti

PowerShell Bangalore User Group (@PSBUG) – 27th July, 2012

http://twitter.com/ravikanth

http://ravichaganti.com/blog

Page 4: Introduction to PowerShell and getting started

LearningPowerShell.com

About Me• Work at Dell Inc.• PowerShell MVP since

2010• Author

• Layman’s guide to PS remoting

• WQL via PowerShell

• Founder & Editor• PowerShellMagazine.c

om• LearningPowerShell.co

m

Page 5: Introduction to PowerShell and getting started

LearningPowerShell.com

Sponsor – Code Owls LLC

http://www.codeowls.com

Solving problems

Automating solutions

Page 6: Introduction to PowerShell and getting started

LearningPowerShell.com

Why PowerShell?• Historically, Windows focused on usability• Times are changing have changed! PowerShell is a

part of MS CEC!• …. And, Microsoft isn’t alone!

• So, IT Professionals, it’s time to buckle up!

Page 7: Introduction to PowerShell and getting started

LearningPowerShell.com

PowerShell For Developers

• Rapid UI Prototyping–WPF using ShowUI–WinForms using PrimalStudio

• Enable PowerShell support within applications– Ex: SnoopShell, etc

• Automated build process and unit testing– Psake, etc

Page 8: Introduction to PowerShell and getting started

LearningPowerShell.com

DEMO

UI PrototypingSnoopShell

Page 9: Introduction to PowerShell and getting started

LearningPowerShell.com

What is PowerShell?

Monad is the next generation platform for administrative automation. Monad solves traditional management problems by leveraging the .Net Platform - Jeffrey Snover, 2002 • We are leaps and bounds ahead,

already!

Page 10: Introduction to PowerShell and getting started

LearningPowerShell.com

PowerShell 1.0Year 2007

PowerShell 2.0Year 2009

PowerShell 3.0

Year 2012

What is PowerShell?

• An object-base shell and is in version 3.0 (release preview)

• Not just a shell anymore; it’s an automation engine.

Page 11: Introduction to PowerShell and getting started

LearningPowerShell.com

DEMO

Text vs Object-based Shell

Page 12: Introduction to PowerShell and getting started

LearningPowerShell.com

What is in PowerShell 3.0?• PowerShell 3.0

– Several enhancements to built-in cmdlets and bug fixes– New built-in cmdlets– New PowerShell ISE (equivalent to a commercial script editor …

well, almost!)– Language and syntax simplification– Robust remoting sessions– Workflows– CIM cmdlets

• PowerShell 3.0 and Windows 8 …– 4000+ cmdlets in-box– Several new modules (disk, network, iscsi, etc)– PowerShell Web Access

Page 13: Introduction to PowerShell and getting started

LearningPowerShell.com

DEMO

New Built-in Cmdlets and EnhancementsNew Tab CompletionNew Integrated Scripting EnvironmentUpdatable helpLanguage and Syntax SimplificationShow-Command

Page 14: Introduction to PowerShell and getting started

LearningPowerShell.com

Takeaways

PowerShell 3.0 is a step forward in datacenter automation.

Features such as Workflows and robust sessions can help IT administrators in automating multi-machine management efficiently.

New features simplify language to help beginners.

This is the right to get started with PowerShell, if you didn’t!

Page 15: Introduction to PowerShell and getting started

LearningPowerShell.com

Q AND A

Page 16: Introduction to PowerShell and getting started

LearningPowerShell.com

Getting Started with PowerShell

Ravikanth Chaganti

PowerShell Bangalore User Group (@PSBUG) – 27th July, 2012

http://twitter.com/ravikanth

http://ravichaganti.com/blog

Page 17: Introduction to PowerShell and getting started

LearningPowerShell.com

What do you need?

• No scripting / programming knowledge!

• Windows PowerShell 2.0 or 3.0• Server OS: Windows Server 2008 or

Windows Server 2008 R2 or Windows Server 2012

• Client OS: Windows Vista or Windows 7 or Windows 8

Page 18: Introduction to PowerShell and getting started

LearningPowerShell.com

Choose the right tool!

• There are many to choose from:– PowerShell.exe [Console Host]– PowerShell_ISE.exe [GUI Host]– PowerGUI by Quest– PowerSE by DevFarm– PowerShell Plus by Idera

Page 19: Introduction to PowerShell and getting started

LearningPowerShell.com

Understand PowerShell cmdlets

• Pronounced as command-let• A lightweight command– Compiled Cmdlets– Script Cmdlets

• Use Verb-Noun pairs

Page 20: Introduction to PowerShell and getting started

LearningPowerShell.com

DEMO

Understanding Cmdlets

Page 21: Introduction to PowerShell and getting started

LearningPowerShell.com

Start with the Shell

• Anything that runs in the shell can be a part of a script

• Discover PowerShell– Get-Help– Get-Member– Get-Command– About Topics

Page 22: Introduction to PowerShell and getting started

LearningPowerShell.com

DEMO

Exploring PowerShell

Page 23: Introduction to PowerShell and getting started

LearningPowerShell.com

Remember …

• … that there is more than one way in PowerShell– [System.Diagnostics.Process]::GetProces

ses()– Get-Process

• … set script execution policies• … to Use PowerShell profiles and

type less!

Page 24: Introduction to PowerShell and getting started

LearningPowerShell.com

DEMO

PowerShell Execution PoliciesPowerShell Profiles

Page 25: Introduction to PowerShell and getting started

LearningPowerShell.com

Call to action

• Start today, if you haven’t. It’s already late!

• Ask questions or ask for help!• Use the learning resources:– Getting started guide– PowerShell Learning center– Free PowerShell eBooks– The scripting Guys blog– PowerScripting Podcast

Page 26: Introduction to PowerShell and getting started

LearningPowerShell.com

Q AND A