Monad (AKA PowerShell)
Introducing the MSH Command Shell and Language
By
Andy Oakley
December 2005
Pages: 206
| Table of Contents
| Index
| Sample Chapter
| Colophon
Table of Contents
-
Chapter 1 Introducing MSH
-
Get MSH
-
Get to Know Verb-Noun Syntax and Cmdlets
-
Access the Registry Like a Filesystem
-
Create a Pipeline to Pass Information
-
Display Data
-
What's Next?
-
Chapter 2 Customizing MSH
-
Load and Save Scripts
-
Save Keystrokes with Aliases
-
Work with the Command Line
-
Make Yourself at Home
-
Find Out What a Command Will Do Before Running It
-
What's Next?
-
Chapter 3 Scripting MSH
-
The .NET Framework
-
Work with Structured Objects
-
Store Information in Variables
-
Control Script Flow with Comparisons
-
Do Repetitive Work with Loops
-
Capture Reusable Behavior in a Function
-
Transform Objects as They Pass Through the Pipeline
-
What's Next?
-
Chapter 4 Managing MSH Scope and State
-
Control Access to Variables and Functions
-
Work with Special Characters
-
Use Wildcards to Define a Set of Items
-
Take String Comparison Beyond -eq, -lt, and -gt
-
When Things Go Wrong
-
What's Next?
-
Chapter 5 Adding to the MSH Toolkit
-
Extend the Toolkit with Generic Cmdlets
-
Work with Text Files
-
Work with Structured File Formats
-
How Variables Relate to the .NET Framework
-
Calling Methods of the .NET Class Library
-
Using new-object with COM Objects
-
What's Next?
-
Chapter 6 Working with Operating System Components
-
Monitoring the Event Log
-
Auditing System Services
-
Get System Information from WMI
-
Manage Filesystem Permissions
-
What's Next?
-
Chapter 7 Putting MSH to Work
-
Invoke Commands with &
-
Parse Text-Based Application Output
-
Fill In the Blanks: Take Input from the Console
-
Untangle GOTO-Based Batch Files
-
Recap: Replacing Common Batch File Syntax
-
Renaming Multiple Files at Once
-
Match and Replace Content in a Text File
-
List Recently Changed Files
-
Counting Types of Files
-
Find Out Which Command Is Being Run
-
Downloading Content from the Web
-
Shorthand for Frequently Used Data
-
Returning System Uptime
-
Simple UI Automation
-
Colorize the Output of get-childitem
-
What's Left?
-
Appendix A Syntax and Grammar
-
Cmdlets
-
Operators
-
Data Types
-
Automatic Variables
-
Global Variables
-
Preference Variables
-
Execution Flow
-
Loops
-
Functions and Filters
-
Resolution Order
-
Appendix B Standard Cmdlets, Functions, and Aliases
-
Standard Cmdlets
-
Standard Functions
-
Aliases
-
Colophon
Return to Monad (AKA PowerShell)