Windowsでネットワークプロファイル(パブリック↔プライベート)の切り替え方法
PowerShell で以下のコマンドを利用
# 現在のネットワークプロファイルを確認 Get-NetConnectionProfile # プロファイルをプライベートに変更(インターフェース名を指定) Set-NetConnectionProfile -InterfaceAlias "インターフェース名" -NetworkCategory Private # パブリックに変更する場合 Set-NetConnectionProfile -InterfaceAlias "インターフェース名" -NetworkCategory Public
コメント
コメントを投稿