PowerShell Troubleshooting Guide
暫譯: PowerShell 故障排除指南
Michael Shepard
- 出版商: Packt Publishing
- 出版日期: 2014-11-28
- 售價: $1,450
- 貴賓價: 9.5 折 $1,378
- 語言: 英文
- 頁數: 206
- 裝訂: Paperback
- ISBN: 1782173579
- ISBN-13: 9781782173571
-
相關分類:
Powershell
海外代購書籍(需單獨結帳)
相關主題
商品描述
About This Book
- Reduce troubleshooting surprises by understanding the PowerShell language
- Avoid parameter passing mistakes by using PowerShell's unique pipeline binding capabilities
- Answer questions such as what, how, and why in troubleshooting sessions by utilizing PowerShell's various write- cmdlets
Who This Book Is For
The techniques in this book apply to beginners who have just started to learn PowerShell, as well as advanced scripters who have a good grasp of the language.
What You Will Learn
- Utilize PowerShell output cmdlets to provide the troubleshooting information you need
- Use pipeline input in your functions to reduce parameter passing issues
- Use Write-* cmdlets to expose the right kind of information in the right places
- Control the environment to eliminate surprises when executing scripts
- Create powerful scripts and functions that communicate expectations
- Write unit tests for your PowerShell functions and scripts to ensure that they can be executed correctly
In Detail
Windows PowerShell provides an amazing platform for administrative scripting and automation. Understanding the PowerShell language will enable you to spend less time troubleshooting and be more effective when debugging is required. PowerShell also includes several avenues to provide feedback from your code that will make your troubleshooting and debugging time more profitable.
Improved coding practices combined with useful diagnostic information can lead to results quickly. This book starts with background information on the purposes of automation and PowerShell's entrance into Microsoft's automation strategy, and also answers the question of whether scripting (and specifically PowerShell scripting) is essentially different than traditional programming. A brief overview of the main features of the PowerShell language along with examples is provided. Focus is placed on proper script design and use of PowerShell features in an attempt to reduce the need for troubleshooting.
商品描述(中文翻譯)
透過利用 PowerShell 語言的獨特功能來最小化除錯時間並最大化故障排除效率
本書簡介
- 透過理解 PowerShell 語言來減少故障排除時的意外
- 利用 PowerShell 獨特的管道綁定能力來避免參數傳遞錯誤
- 在故障排除過程中,利用 PowerShell 的各種寫入 cmdlet 來回答什麼、如何及為什麼等問題
本書適合誰
本書中的技術適用於剛開始學習 PowerShell 的初學者,以及對該語言有良好掌握的進階腳本撰寫者。
您將學到什麼
- 利用 PowerShell 輸出 cmdlet 提供所需的故障排除資訊
- 在函數中使用管道輸入以減少參數傳遞問題
- 使用 Write-* cmdlet 在正確的位置揭露正確類型的資訊
- 控制環境以消除執行腳本時的意外
- 創建強大的腳本和函數以傳達期望
- 為您的 PowerShell 函數和腳本撰寫單元測試,以確保它們能正確執行
詳細內容
Windows PowerShell 提供了一個出色的管理腳本和自動化平台。理解 PowerShell 語言將使您在故障排除時花費更少的時間,並在需要除錯時更有效率。PowerShell 還包括幾種從您的代碼提供反饋的途徑,這將使您的故障排除和除錯時間更具成效。
改進的編碼實踐結合有用的診斷資訊可以迅速導致結果。本書首先介紹自動化的目的及 PowerShell 進入微軟自動化策略的背景資訊,並回答腳本撰寫(特別是 PowerShell 腳本撰寫)是否本質上與傳統編程不同的問題。提供了 PowerShell 語言主要特徵的簡要概述及示例。重點放在正確的腳本設計和 PowerShell 特性的使用上,以減少故障排除的需求。