qshinoの日記

Powershell関係と徒然なこと

Windows初期設定関連スクリプト

目次

  1. タイムゾーン
  2. Windowsファイアーウォール Firewall
  3. プロキシ設定
  4. windoqs update
  5. IE ESC無効化
  6. IP固定化
  7. DNS設定/DNSサーバーIPアドレス追加
  8. ネットワークのifIndex, alias, IPアドレス取得

ファイアーウォール設定について

PS> Get-NetFirewallProfile

Name                            : Domain
Enabled                         : True
...(以下略)

Windows ファイアーウォールを無効化する

PS> Get-NetFirewallProfile | Set-NetFirewallProfile -Enabled False

ネットワークifとIP

Get-NetIPInterface
Get-NetIPAddress

参考

http://qiita.com/Kirito1617/items/aed439bcb66c63489337