Kumaravel ffirs.tex V1 - 01/09/2008 8:43pm Page iii
Professional
Windows PowerShell
Programming
Snap-ins,Cmdlets,Hosts,andProviders
Arul Kumaravel
Jon White
Michael Naixin Li
Scott Happell
Guohui Xie
Krishna C. Vutukuri
Wiley Publishing, Inc.
Kumaravel ffirs.tex V1 - 01/09/2008 8:43pm Page ii
Kumaravel ffirs.tex V1 - 01/09/2008 8:43pm Page i
Professional
Windows PowerShell
Programming
Preface xvii
Introduction xix
Chapter 1: Introduction to PowerShell .............. . . . . . . . .... . . . . . . . ..... . 1
Chapter 2: Extending Windows PowerShell .. . . . . . . . ..... . . . . . . . .... . . . . . . . 13
Chapter 3: Understanding the Extended Type System .... . . . . . . . .... . . . . . . . 29
Chapter 4: Developing Cmdlets . . . ..... . . . . . . . .... . . . . . . . .... . . . . . . . .... . . . 63
Chapter 5: Providers .. .... . . . . . . . ..... . . . . . . . .... . . . . . . . .... . . . . . . . .... . . 117
Chapter 6: Hosting the PowerShell Engine in Applications .... . . . . . ...... . . 165
Chapter 7: Hosts .. . . ...... . . . . . ....... . . . . ....... . . . . . ...... . . . . . ...... . . 197
Chapter 8: Formatting&Output . . . ..... . . . . . . . .... . . . . . . . .... . . . . . . . .... . . 233
Appendix A: Cmdlet Verb Naming Guidelines .... . . . . . . . .... . . . . . . . .... . . . . 257
Appendix B: Cmdlet Parameter Naming Guidelines .... . . . . . ....... . . . . .... 263
Appendix C: Metadata .. . . . . . . . .... . . . . . . . ..... . . . . . . . .... . . . . . . . .... . . . . 271
Appendix D: Provider Base Classes and Overrides/Interfaces.. . . .... . . . . . . 283
Appendix E: Core Cmdlets for Provider Interaction... . . . . . . . .... . . . . . . . .... 303
Index 307
Kumaravel ffirs.tex V1 - 01/09/2008 8:43pm Page ii