Publishing Information
Author
Books by the Author
Foreword
Preface
- Introduction
- How This Book Works
- Some PowerShell Background
- Why PowerShell?
- Management Shells
- Command Structure
- Piping
- Caveats
- Protecting Yourself and What If
- Command Discovery Techniques
- PowerShell Modules and More
- PowerShell Errors
- PowerShell Errors and Limitations
- Getting Help!?!1
- Idiosyncrasies
- What’s Next?
Chapter 1: PowerShell Basics
- Introduction
- Variables
- Arrays
- Hash Tables
- CSV Files
- Operators
- Loops
- Export-CSV
- Functions
- PowerShell Tools
- ISE Plugins and Additional Tools
- Summary
Chapter 2: Beyond the Basics
- Formatting
- Command Output
- Miscellaneous Topics
- Summary
Chapter 3: Building PowerShell Scripts
- How to Begin
- Scenario One - PowerShell and Change
- Scenario Two: Exchange Online Distribution Group Cleanup
- Scenario Three: Security and Compliance Center One Drive cleanup
- Interesting Add On - Write Progress
- Script Building Summary
- Challenge Yourself!
Chapter 4: Further Enhancements
- Introduction
- Add and Replace
- Arrays - A Deeper Dive
- Connectivity Testing
- Data Types
- Empty Spaces
- Error Action
- Formatting the Shell?
- Get-Date
- Get-History
- Hash Tables - A Deeper Dive
- Managing Output Files
- Out-GridView
- PowerShell StopWatch
- Read-Host
- Role Based Access Controls (RBAC)
- Sort-Object and Unique Values
- Trim()
- Summary
Chapter 5 - Reporting
- Introduction
- Screenshots
- TXT Files
- CSV Files
- HTML Files
- Delivery Methodologies
- File Copy
- Summary
Chapter 6 - Troubleshooting
- Introduction
- Breaking up the Script
- Write-Host
- Comments
- PowerShell ISE
- Debugging
- ErrorAction
- Try and Catch
- Transcript
- Deciphering Error Messages
- Access Denied
- Variables
- Arrays
- Measure-Command
- Conclusion
Chapter 7 - Best Practices
- What is a Best Practice?
- Naming Conventions, this time for Functions and Scripts
- Single Task Function
- Signing Your Code
- Filter vs. Where
- Error Handling
- Conclusion and Further Help
- Visual Studio Code
Chapter 8 - Miscellaneous
- Introduction
- Menus
- Aliases
- Foreach-Object (%)
- PowerShell Interface Customization
- Command Logging
- Summary