1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PCの設定をPowershell上から取得しログに出力する Part1

Posted at

PCなりSVなりキッティングする際、設定などをログとして収集することがある
その場合のやり方を記述

よくあるものを列挙
追加あれば記事を増やして更新予定

PC名

hostname >C:\work\Log\log.txt

IPアドレス

ipconfig /all >>C:\worlk\Log\log.txt

Firewallの設定

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

WindowsのOS情報取得

(Get-WmiObject Win32_OperatingSystem).Caption >>C:\work\Log\log.txt

BitLockerの有効確認

Get-BitLockerVolume -MountPoint "C" >>C:\work\Log\log.txt

インストールされている更新プログラム取得

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

Hosts情報取得

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

インストールされているアプリケーション取得

Get-WmiObject Win32_Product | select-Object Name,Vendor,Version,Caption >>C:\work\Log\log.txt

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?