Powershell-cmdlets-get-history

提供:Dev Guides
移動先:案内検索

Powershell-Get-Historyコマンドレット

コマンドレット

*Get-History* コマンドレットは、現在のセッションで実行されているコマンドを取得するために使用されます。

これらの例では、Get-Historyコマンドレットが実行されています。

この例では、現在の履歴でコマンドを実行します。

> get-history
  Id CommandLine
  -- -----------
  13 clear-history
  14 get-history
  15 dir
  16 dir
  17 dir
  18 dir