- PowerShell 教程
- PowerShell - 首頁
- PowerShell - 概述
- PowerShell - 環境設定
- PowerShell - Cmdlet
- PowerShell - 檔案和資料夾
- PowerShell - 日期和計時器
- PowerShell - 檔案 I/O
- PowerShell - 高階 Cmdlet
- PowerShell - 指令碼
- PowerShell - 特殊變數
- PowerShell - 運算子
- PowerShell - 迴圈
- PowerShell - 條件
- PowerShell - 陣列
- PowerShell - 雜湊表
- PowerShell - Regex
- PowerShell - 反引號
- PowerShell - 括號
- PowerShell - 別名
- PowerShell 有用資源
- PowerShell - 快速指南
- PowerShell - 有用資源
- PowerShell - 討論
PowerShell - Get-History Cmdlet
Cmdlet
Get-History cmdlet 用於獲取在當前會話中執行的命令。
在此示例中,我們將看到 Get-History cmdlet 的實際應用。
示例
在此示例中,我們將獲取在當前歷史記錄中執行的命令。
> get-history Id CommandLine -- ----------- 13 clear-history 14 get-history 15 dir 16 dir 17 dir 18 dir
powershell_advanced_cmdlets.htm
廣告