jeffrey snoverpartner architect bruce payetteprincipal developer dan harmanprogram manager msd...
TRANSCRIPT
What's Coming In PowerShell V2Jeffrey Snover Partner ArchitectBruce Payette Principal DeveloperDan Harman Program Manager
MSD Solutions and PlatformsMicrosoft Corporation
SE02
SE01 – Introduction to PowerShellWhat: Overview of basic featuresWho: Beginners or no prior experienceWhen: Wednesday, 11:45am – 1:00pmLevel: 200
SE02 – What’s Coming in PowerShell V2?What: Overview of features in PowerShell 2.0Who: Intermediate and advanced usersWhen: Wednesday, 4:00pm – 5:15pmLevel: 300
SE03 – PowerShell Scripting for WizardsWhat: Programming features & advanced scriptingWho: Advanced and expert usersWhen: Friday, 10:00am – 11:15amLevel: 400
SE02 – What’s Coming in PowerShell V2What: Overview of features in PowerShell 2.0Who: Intermediate and advanced usersWhen: Wednesday, 4:00pm – 5:15pmLevel: 300
PowerShell Sessions
State Of The SoftwarePhenomenal rate of adoption
Over 2 million downloads in less than 18 months
Windows XP, Windows Vista, Windows Server 2003 and 2008
Adopted by Exchange, SQL, SCOM, SCVMM, and SCDPM
CEC 2009 requirement
Dozens of 3rd party tools, ISVs, and partners
Strong community engagement, 27 PowerShell MVPs
Nov-06
Jan-07M
ar-07M
ay-07Jul-07Sep-07Nov-07
Jan-08M
ar-08
0
500000
1000000
1500000
2000000
2500000
PowerShell Downloads
Shipped withWindows Server 2008
Tower Of PowerPowerShell books
2007 2008
Now available inJapaneseGermanFrenchMore…
Books By The PowerShell Team
Yes – we believe in our product !!!
PowerShell Architecture
User Experience
Shell
Language
Debugger
Engine
APIs
Execution Context
Object Mgr
Managed Elements
Cmdlets
WMI
COM
.NET
XML
ADO
ADSI
Native Commands
PowerShell V2 Themes
GUI over PowerShell
Production Scripting
Universal Code Execution Model
Community Feedback
PowerShell V2 Themes
Admin GUIs layer on top of PowerShellCLI & GUIAgility in delivering new GUIsEnsures automationGUI teaches command lineStandardizes access to managed elements
GUI over PowerShell
User Experience
Shell
Language
Debugger
Engine
APIs
Execution Context
Object Mgr
Managed Elements
Cmdlets
WMI
COM
.NET
XML
ADO
ADSI
Native Commands
GUI Over PS: Features
Graphical PowerShell
Out-Gridview
New APIs
Runspace PoolingThread Control
GUI Over PowerShellDan HarmanProgram ManagerMSD Solutions and Platforms
D E M O
PowerShell V2 Themes
Scripts are Easy to useSafe to operateEasy to shareEasy to support
Production Scripting
User Experience
Shell
Language
Debugger
Engine
APIs
Execution Context
Object Mgr
Managed Elements
Cmdlets
WMI
COM
.NET
XML
ADO
ADSI
Native Commands
Production Scripting: Features
Script Cmdlets
Data Language
Modules
Debugger Enhancements
Transactions
Script Cmdlets
Native Code
Production ScriptingBruce PayettePrincipal Developer MSD Solutions and Platforms
D E M O
PowerShell V2 Themes
Expressions, Commands, and ScriptBlocks can run
In the foreground or background On one or more machinesOver a LAN or a WANIn restricted or unrestricted environmentsUsing short or long connectionsUsing impersonation or supplied credentialsInitiated by user input or by events
Universal Code Execution Model
User Experience
Shell
Language
Debugger
Engine
APIs
Execution Context
Object Mgr
Managed Elements
Cmdlets
WMI
COM
.NET
XML
ADO
ADSI
Native Commands
UCCE Features
Remoting
Background Jobs
Eventing
Restricted Runspaces
Mobile Object Model
Mobile Objects Model
Islands of optimization in a sea of interoperability
Whenever possible, use live .NET objectsUse typed property bags everywhere else
Live objects get serialized at runspace borders
Typed property bags using 22+ core datatypesEverything else is converted using ToString()Process can be tweaked with typeXML entries
Automatically deserialized into typed property bags on receipt
Type: Deserialized.OriginalTypeComputerName
Universal Code ExecutionJeffrey SnoverPartner ArchitectMSD Solutions and Platforms
D E M O
PowerShell V2 Themes
Respond to community feedbackEnhance the languageTweak the engineAdd and enhance Cmdlets
Community Feedback
User Experience
Shell
Language
Debugger
Engine
APIs
Execution Context
Object Mgr
Managed Elements
Cmdlets
WMI
COM
.NET
XML
ADO
ADSI
Native Commands
Community Feedback: Features
Language Enhancement
s
ImprovedObject
Adapters
New Cmdlets
WMI++
New Cmdlets (So Far)Remoting:
Invoke-CommandNew-RunspaceGet-RunspacePush-RunspacePop-RunspaceRemove-Runspace
Converting Types:Add-TypeConvertTo-CsvConvertFrom-CsvConvertTo-XmlConvertFrom-StringData
Event Viewer and ETW Logs:
Get-Event
Script Internationalization:
Import-LocalizedData
Modules:Add-ModuleGet-ModuleRemove-ModuleExport-ModuleMember
Debugging:Set-PSBreakpointGet-PSBreakpointEnable-PSBreakpointDisable-PSBreakpointRemove-PSBreakpointGet-PSCallStack
Eventing:Register-ObjectEventRegister-PSEventWait-PSEvent Remove-PSEventUnregister-PSEvent Get-PSEventNew-PSEventGet-PSEventSubscriber
Background Jobs:Start-PSJobGet-PsJobStop-PSJobReceive-PSJobWait-PSJob Remove-PSJob
Transactions:Complete-PSTransactionStart-PSTransactionUndo-PSTransactionUse-PSTransaction
WMI:Register-WMIEvent Set-WMIInstanceInvoke-WMIMethodRemove-WMIObject
More Cmdlets:Clear-HistoryGet-RandomOut-GridViewSet-StrictModeUpdate-ListWait-Process
WMI+++
CmdletsGet-WmiObject, Remove-WmiObjectSet-WMIInstanceInvoke-WmiMethodRegister-WMIEvent
New parameters -Impersonation, -Authentication, -Locale, -EnableAllPrivileges, -Amended, -DirectRead, -Authority -AsJob and -ThrottleLimit (!)
Connection settings stay with the object [bug fix]
Community FeedbackJeffrey SnoverBruce PayetteDan HarmanMSD Solutions and Platforms
D E M O
Community Resources
Newsgroup: Microsoft.Public.Windows.PowerShellTeam blog: http://blogs.msdn.com/PowerShellPowerShell Community: http://www.powershellcommunity.orgChannel 9: http://channel9.msdn.com/tags/PowerShellWiki: http://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=powershellBooks
PowerShell in Action by Bruce Payettehttp://manning.com/powershell Windows PowerShell Cookbook by Lee Holmes http://www.oreilly.com/catalog/9780596528492/index.htmlProfessional Windows PowerShell Programming http://www.wrox.com/WileyCDA/WroxTitle/productCd-0470173939.htmlMany others…
Q & A
Be eligible to win fun daily prizes – t-shirts, USB drives, and more!
Please Complete An Evaluation FormYour input is important!
Two ways to access online evaluation forms
CommNet and evaluation stations located in hallways outside breakout roomsFrom any wired or wireless connection to http://mms-2008.com
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after
the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.