Windows PowerShell 誕生
UNIX 的世界有功能強大的 shell,現在 Windows 環境也有了;Windows PowerShell 不僅提供功能相當于BASH的命令列 shell,同時也內建腳本語言以及輔助腳本程序的工具。Windows PowerShell 是以 .NET 技術為基礎,并且與現有的 WSH 保持回溯兼容,因此 Windows PowerShell 的腳本程序不僅能存取 .NET CLR,也能使用現有的 COM 技術。
Windows PowerShell 包含了數種系統管理工具、簡易且一致的語法,提升管理者處理常見如登錄數據庫、WMI。Exchange Server 2007 以及 System Center Operations Manager 2007 等服務器軟件都將內建 Windows PowerShell。
Monad 是 Windows PowerShell 之前的項目代號,Microsoft Shell(MSH)則是另一個別名;簡而言之,Windows PowerShell 具有以下特點:
一致性的設計讓所有工具和系統數據的使用語法、命名原則都相同。
Windows PowerShell 的腳本語言不僅簡單易學,而且能支持現有的腳本程序和命令列工具。
• 內含 129 種稱為 cmdlet 的標準工具,可用來處理常見的系統管理工作,例如登錄數據庫、系統服務、形成、WMI、事件日志等等。
• 具備完整的擴充功能,獨立軟件商或開發者都能很容易的自行擴充。
下載、安裝、執行 Windows PowerShell
Windows PowerShell 可安裝于 Windows XP 以及之后的客戶端或服務器端 Windows 操作系統,包括:
• 客戶端:Windows XP、Windows XP Service Pack 1、Windows XP Service Pack 2、Windows Vista
• 服務端:Windows Server 2003、Windows Server 2003 R2、Windows Server 2003 Service Pack 1
而 Windows PowerShell 除了有 32 位版本,也還有 x64 和 ia64 等兩個 64 位版本,可以安裝在這兩種 64 位 Windows 平臺。此外,由于執行 Windows PowerShell 需要 .NET Framework 2.0,因此請先替計算機安裝 .NET Framework 2.0。
安裝之后,可以利用以下三種方式執行 Windows PowerShell:
• 位于『開始 / 所有程序』的『Windows PowerShell』快捷方式。
• 在『開始 / 運行』的『運行』命令窗輸入 powershell。
• 在任何『命令提示字符』窗口的命令提示符號輸入 powershell。
Windows PowerShell 窗口看起來類似原本的『命令提示字符』窗口,而我通常也都會調整窗口和字型的大小,以方便作業。
初探 Windows PowerShell
任何 shell 都有列出目錄、文件的命令,Windows PowerShell 呢?先輸入 DOS 的 dir 試試吧!
文章來源于領測軟件測試網 http://www.kjueaiud.com/