0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ログをテキストに保存する方法

Posted at

ログにテキスト形式として保存する方法
前記事でログ出力させるフォルダの作成は完成している
そこにテキスト形式でログを保存する方法を紹介

①②とあるが、好きな方法で

コマンドの出力をファイルに保存

Get-Timezone | Out-File -FilePath "C:\work\Log\log.txt"

追記形式でログを保存

Get-NetFirewallProfile | Out-File -FilePath "C:\work\Log\log.txt" -Append

コマンドの出力をファイルに保存

Get-NetConnectionProfile >C:\work\Log\log.txt

追記形式でログを保存

Type c:\windows\system32\drivers\etc\hosts >>C:\work\Log\log.txt

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?