Introduction to PowerShell and getting started

Post on 24-May-2015

518 views 3 download

Tags:

description

This was the deck used for PowerShell Bangalore User Group (PSBUG) inaugural meeting.

Transcript of Introduction to PowerShell and getting started

LearningPowerShell.com

PowerShell Bangalore User Group (PSBUG)

Inaugural meet – 28th, July 2012

http://twitter.com/psbug

LearningPowerShell.com

Agenda

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

LearningPowerShell.com

Introduction to PowerShell

Ravikanth Chaganti

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

http://twitter.com/ravikanth

http://ravichaganti.com/blog

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

LearningPowerShell.com

Sponsor – Code Owls LLC

http://www.codeowls.com

Solving problems

Automating solutions

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!

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

LearningPowerShell.com

DEMO

UI PrototypingSnoopShell

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!

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.

LearningPowerShell.com

DEMO

Text vs Object-based Shell

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

LearningPowerShell.com

DEMO

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

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!

LearningPowerShell.com

Q AND A

LearningPowerShell.com

Getting Started with PowerShell

Ravikanth Chaganti

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

http://twitter.com/ravikanth

http://ravichaganti.com/blog

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

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

LearningPowerShell.com

Understand PowerShell cmdlets

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

• Use Verb-Noun pairs

LearningPowerShell.com

DEMO

Understanding Cmdlets

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

LearningPowerShell.com

DEMO

Exploring PowerShell

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!

LearningPowerShell.com

DEMO

PowerShell Execution PoliciesPowerShell Profiles

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

LearningPowerShell.com

Q AND A