26
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PowerShellの完全な履歴を取得する

Last updated at Posted at 2018-10-11

約3ヶ月前にPowerShellで実行したコマンドを確認する必要がでてきたが、履歴を確認するコマンドを調べて出てきたGet-Historyコマンドは現在のセッション内で実行したコマンドしかでない...

しかし、↑キーを押して遡る場合は以前のセッションで実行したコマンドも出てくるのでやはりどこかしらにはログが残っているのではないかと、英語でも調べてみたらやはりあった

ログのパスは以下を実行すると出てくる

(Get-PSReadlineOption).HistorySavePath

参考

26
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
26
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?