Book description
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
Publisher resources
Table of contents
- Windows Powershell for Developers
- Dedication
- Preface
- 1. Introduction
- 2. Getting Started
-
3. The Dime Tour
- The Object Pipeline: The Game Changer
- Automation References
- Semicolons
- Return Statements
- Datatypes
- Exception Handling
- Quoting Rules
- PowerShell Subexpressions in Strings
- Here-Strings
- Closures, Functions, and Lambdas
- Arrays
- Parentheses and Commas
- Hash Tables
- Get-Member
- Inject a GUI into the PowerShell Command Line
- New-Object
- Add-Member
- Add-Type
- âWhat Does % Do?â and Other Aliases
- Modules
- Summary
- 4. Accelerating Delivery
-
5. Add PowerShell to Your GUI
- Embedding PowerShell in your C# Application
- Beaver Music Application
- Getting the PowerShell Console in Your App
- Summary
- 6. PowerShell and the Internet
- 7. Building GUI Applications in PowerShell
- 8. DLLs, Types, Properties, Methods, and Microsoft Roslyn
- 9. Writing Little Languages in PowerShell
- 10. PowerShell, COM, and More
-
11. PowerShell Version 3
- PowerShell Workflows
- Using PowerShell with Web Data: Converting to and from JSON
- Creating an Instance of a Microsoft .NET Framework Object
- Get-Content âTail
- ISE v3
- Out-GridView and the -PassThru Parameter
- Scheduling Jobs
- Invoke-WebRequest and Invoke-RestMethod
- PowerShell v3 Items That Are a Must-See
- Summary
-
A. 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
- B. Running PowerShell with the .NET 4.0 Runtime
- About the Author
- Copyright
Product information
- Title: Windows PowerShell for Developers
- Author(s):
- Release date: July 2012
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449322663
You might also like
book
Windows PowerShell Cookbook
This Cookbook by Windows PowerShell team developer Lee Holmes provides hundreds of tested scripts that you …
book
Windows PowerShell Best Practices
Expert recommendations, pragmatically applied. Automate system administration using Windows PowerShell best practices—and optimize your operational efficiency. …
book
Windows PowerShell for .NET Developers - Second Edition
Efficiently administer and maintain your development environment with Windows PowerShell About This Book Explore scripting and …
book
Windows PowerShell Step by Step, Third Edition
Your hands-on guide to Windows PowerShell scripting fundamentals Expand your expertise--and teach yourself the fundamentals of …