更新时间:2021-07-16 20:28:45
coverpage
Getting Started with PowerShell
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. First Steps
Determining the installed PowerShell version
Installing/upgrading PowerShell
Starting a PowerShell session
Simple PowerShell commands
PowerShell aliases
Summary
For further reading
Chapter 2. Building Blocks
What can you do?
The scripter's secret weapon – tab completion
How does that work?
Interpreting the cmdlet syntax
Chapter 3. Objects and PowerShell
Objects all the way down
What are members?
The Get-Member cmdlet
Where did these all come from?
Chapter 4. Life on the Assembly Line
The pipeline as an assembly line
Dealing with pipeline data
Putting them together
Chapter 5. Formatting Output
When does formatting occur?
The rules of automatic formatting
Cmdlets that control formatting
The dangers of formatting
Best practices of formatting
Chapter 6. Scripts
Packaging commands
Parameters add flexibility
Adding some logic
Profiles
Chapter 7. Functions
Another kind of container
Executing and calling functions
Naming conventions
Comment-based help
Parameters revisited
Default values for parameters
Output
Chapter 8. Modules
Packaging functions
Script modules
Where do modules live?
Removing a module
PowerShell module autoloading
The #Requires statement
Removing a module – take two
Listing modules
Chapter 9. File I/O
Reading and writing text files
Working with CSV files
PowerShell streams and redirection
CLIXML – a special type of XML
Chapter 10. WMI and CIM
What is WMI?
Finding WMI classes
Retrieving objects with Get-WMIObject
Calling methods
WMI and CIM
CDXML modules
Chapter 11. Web Server Administration
Installing IIS
Verifying IIS
The WebAdministration module
Starting stopping and restarting IIS
Creating virtual directories and web applications
Working with application pools