Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Windows PowerShell Pocket Reference
Preface
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
A Guided Tour of Windows PowerShell
Introduction
An Interactive Shell
Structured Commands (Cmdlets)
Deep Integration of Objects
Administrators as First-Class Users
Composable Commands
Techniques to Protect You from Yourself
Common Discovery Commands
Ubiquitous Scripting
Ad Hoc Development
Bridging Technologies
Namespace Navigation Through Providers
Much, Much More
1. PowerShell Language and Environment
Commands and Expressions
Comments
Help Comments
Variables
Booleans
Strings
Literal and Expanding Strings
Here Strings
Escape Sequences
Numbers
Simple Assignment
Administrative Numeric Constants
Hexadecimal and Other Number Bases
Large Numbers
Imaginary and Complex Numbers
Arrays and Lists
Array Definitions
Array Access
Array Slicing
Hashtables (Associative Arrays)
Hashtable Definitions
Hashtable Access
XML
Simple Operators
Arithmetic Operators
Logical Operators
Binary Operators
Other Operators
Comparison Operators
Conditional Statements
if, elseif, and else Statements
switch Statements
Looping Statements
for Statement
foreach Statement
while Statement
do … while Statement/do … until Statement
Flow Control Statements
break
continue
Workflow-Specific Statements
InlineScript
Parallel/Sequence
foreach -parallel
Working with the .NET Framework
Static Methods
Instance Methods
Explicitly Implemented Interface Methods
Static Properties
Instance Properties
Learning About Types
The Get-Member cmdlet
.NET Framework documentation
Type Shortcuts
Creating Instances of Types
Interacting with COM Objects
Extending Types
The Add-Member cmdlet
Custom type extension files
Writing Scripts, Reusing Functionality
Writing Commands
Writing scripts
Writing functions
Writing script blocks
Running Commands
Invoking
Dot-sourcing
Parameters
Providing Input to Commands
Argument array
Formal parameters
Command behavior customizations
Parameter attribute customizations
Parameter validation attributes
Pipeline input
Cmdlet keywords in commands
$MyInvocation automatic variable
Retrieving Output from Commands
Pipeline output
Return statement
Exit statement
Help Documentation
Managing Errors
Nonterminating Errors
Terminating Errors
Formatting Output
Custom Formatting Files
Capturing Output
Common Customization Points
Console Settings
Adjust your window size
Make text selection easier
Use hotkeys to operate the shell more efficiently
Profiles
Prompts
Tab Completion
User Input
Command Resolution
2. Regular Expression Reference
3. XPath Quick Reference
4. .NET String Formatting
String Formatting Syntax
Standard Numeric Format Strings
Custom Numeric Format Strings
5. .NET DateTime Formatting
Custom DateTime Format Strings
6. Selected .NET Classes and Their Uses
7. WMI Reference
8. Selected COM Objects and Their Uses
9. Selected Events and Their Uses
10. Standard PowerShell Verbs
Index
About the Author
Colophon
Copyright
← Prev
Back
Next →
← Prev
Back
Next →