Windows PowerShell for Developers

Overview

Want to perform programming tasks better, faster, simpler, and make them repeatable? Take a deep dive into Windows PowerShell and discover what this distributed automation platform can do. Whether you’re a .NET developer or IT pro, this concise guide will show you how PowerShell’s scripting language can help you be more productive on everyday tasks.

Quickly learn how to create PowerShell scripts and embed them into your existing applications, write "little languages" to solve ...

See more details below
Paperback
$22.23
BN.com price
(Save 11%)$24.99 List Price
Other sellers (Paperback)
  • All (11) from $14.91   
  • New (9) from $14.91   
  • Used (2) from $15.37   
Windows PowerShell for Developers

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$10.49
BN.com price
(Save 38%)$16.99 List Price

Overview

Want to perform programming tasks better, faster, simpler, and make them repeatable? Take a deep dive into Windows PowerShell and discover what this distributed automation platform can do. Whether you’re a .NET developer or IT pro, this concise guide will show you how PowerShell’s scripting language can help you be more productive on everyday tasks.

Quickly learn how to create PowerShell scripts and embed them into your existing applications, write "little languages" to solve specific problems, and take charge of your code. This book includes example scripts that you can easily pull apart, tweak, and then use in your own PowerShell and .NET solutions.

  • Slice and dice text, XML, CSV, and JSON with ease
  • Embed PowerShell to provide scripting capabilities for your C# apps
  • Create GUI applications five to ten times faster with less code
  • Leverage PowerShell’s capabilities to work with the Internet
  • Interact with DLLs and create objects, automatically display properties, and call methods in live interactive sessions
  • Build domain-specific languages (DSLs) and vocabularies to express solutions more clearly
  • Work with Microsoft Office via the Component Object Model (COM)
  • Discover PowerShell v3 features included with Windows 8 and Windows Server 2012
Read More Show Less

Product Details

  • ISBN-13: 9781449322700
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 7/18/2012
  • Edition number: 1
  • Pages: 210
  • Sales rank: 530,172
  • Product dimensions: 6.90 (w) x 9.10 (h) x 0.40 (d)

Meet the Author

Doug Finke, a Microsoft Most Valuable Professional (MVP) for PowerShell, is a software developer at Lab49, a company that builds advanced applications for the financial service industry. For the last 20 years, Doug has been a developer and author working with numerous technologies. You can catch up with Doug at his blog Development in a Blink at http://dougfinke.com/blog/.

Read More Show Less

Table of Contents

Preface;
Audience;
Assumptions This Book Makes;
Contents of This Book;
Conventions Used in This Book;
Using Code Examples;
We’d Like to Hear from You;
Safari® Books Online;
Acknowledgments;
Chapter 1: Introduction;
1.1 This Is Just the Beginning;
1.2 Why Use PowerShell;
1.3 There’s a New Game in Town;
1.4 An Underutilized Development Tool;
Chapter 2: Getting Started;
2.1 Installing PowerShell;
2.2 Interactivity, the Key to PowerShell;
2.3 Running a PowerShell Script;
2.4 PowerShell ISE;
2.5 Other PowerShell Editors;
2.6 PowerShell and Visual Studio;
2.7 The PowerShell Community;
2.8 The Future of PowerShell on Windows 8;
2.9 Summary;
Chapter 3: The Dime Tour;
3.1 The Object Pipeline: The Game Changer;
3.2 Automation References;
3.3 Semicolons;
3.4 Return Statements;
3.5 Datatypes;
3.6 Exception Handling;
3.7 Quoting Rules;
3.8 PowerShell Subexpressions in Strings;
3.9 Here-Strings;
3.10 Closures, Functions, and Lambdas;
3.11 Arrays;
3.12 Parentheses and Commas;
3.13 Hash Tables;
3.14 Get-Member;
3.15 Inject a GUI into the PowerShell Command Line;
3.16 New-Object;
3.17 Add-Member;
3.18 Add-Type;
3.19 “What Does % Do?” and Other Aliases;
3.20 Modules;
3.21 Summary;
Chapter 4: Accelerating Delivery;
4.1 Scanning for const Definitions;
4.2 Working with Template Engines;
4.3 Generating PowerShell Functions from C# Methods;
4.4 Calling PowerShell Functions from C#;
4.5 Overriding C# Methods with PowerShell Functions;
4.6 Summary;
Chapter 5: Add PowerShell to Your GUI;
5.1 Embedding PowerShell in your C# Application;
5.2 Beaver Music Application;
5.3 Getting the PowerShell Console in Your App;
5.4 Summary;
Chapter 6: PowerShell and the Internet;
6.1 Net.WebClient;
6.2 Wrapping Code in a PowerShell Function;
6.3 Reading XML-Formatted Data from the Web;
6.4 Invoke-RestMethod;
6.5 PowerShell and The New York Times Semantic API;
6.6 New-WebServiceProxy;
6.7 Invoke-WebRequest;
6.8 Summary;
Chapter 7: Building GUI Applications in PowerShell;
7.1 Why a Chapter About GUIs?;
7.2 PowerShell and WinForms;
7.3 PowerShell, ShowUI, and the Twitter API;
7.4 A Twitter GUI Application;
7.5 ShowUI Video Player;
7.6 Summary;
Chapter 8: DLLs, Types, Properties, Methods, and Microsoft Roslyn;
8.1 Sending Text to the Clipboard;
8.2 Transcoding C# to PowerShell;
8.3 Microsoft’s Roslyn;
8.4 Using PowerShell to Display Visual Studio Detail;
8.5 Roslyn’s Document Methods;
8.6 PowerShell Roslyn Class Viewer;
8.7 Summary;
Chapter 9: Writing Little Languages in PowerShell;
9.1 Adding a New Construct to PowerShell;
9.2 PowerShell: A Better XML;
9.3 The Little Language in Action;
9.4 Graphviz;
9.5 Mix and Match PowerShell and GraphViz;
9.6 Summary;
Chapter 10: PowerShell, COM, and More;
10.1 Opening a File in Excel Using Invoke-Item;
10.2 Calling an Excel Function;
10.3 Discovering Available Excel Functions;
10.4 Automating Excel from PowerShell;
10.5 Discovering Other COM Applications to Automate;
10.6 Summary;
Chapter 11: PowerShell Version 3;
11.1 PowerShell Workflows;
11.2 Using PowerShell with Web Data: Converting to and from JSON;
11.3 Creating an Instance of a Microsoft .NET Framework Object;
11.4 Get-Content –Tail;
11.5 ISE v3;
11.6 Out-GridView and the -PassThru Parameter;
11.7 Scheduling Jobs;
11.8 Invoke-WebRequest and Invoke-RestMethod;
11.9 PowerShell v3 Items That Are a Must-See;
11.10 Summary;
Productive PowerShell;
Getting Automation Approved;
Saving Time with Automation;
Adding Aliases to Your PowerShell Profile;
Adding Variables and Functions to Your PowerShell Profile;
Remote Desktop Connection;
Starting Another PowerShell Session;
Using PowerShell’s Tokenizer;
PowerShell and Older Tools;
Faster, Faster—The Light Is Turning Red;
Summary;
Running PowerShell with the .NET 4.0 Runtime;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)