Skip to content


Subversion checkout URL

You can clone with
Download ZIP
PowerShell examples for the book "PowerShell for Developers"
C# PowerShell
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Appendix A


This repository contains the latest definitive bug fixed source code for examples from PowerShell for Developers.

In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.

We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example:

PowerShell for Developers, by Douglas Finke (O’Reilly). Copyright 2012 O'Reilly Media, 978-1-4493-2270-0.

If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at

If you are interested in this code, please consider buying a copy of the book, which is available in many formats via

You get lifetime access to ebooks you purchase through Read more about O'Reilly's ebook program here:

Book Description

Book Cover

The PowerShell platform gives developers seamless integration with legacy .Net code while adding a range previously not seen in a language. With this book you will quickly learn the fundamentals, and move on to writing rich, sophisticated scripts to manage key tasks and processes in your development activities. PowerShell .Net for Developers begins with a cheat sheet of language primitives to get you on your feet with the language. You’ll see how to speed up nearly every aspect of the development process using PowerShell.

If you have general questions or comments, please visit

Contact Us

We'd like to hear from you!

For more information about O'Reilly books, courses, conferences, and news, see our website at

Find us on Facebook:

Follow us on Twitter:

Watch us on YouTube:

Something went wrong with that request. Please try again.