LoginSignup
25
17

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

参考

25
17
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
25
17