HOMEプログラムpowershell【PowerShell】コマンドラインのIPCONFIGのようにIP、DNS サーバーなどの情報を取得する方法 Get-NetIPConfiguration コマンドレットは、使用可能なインターフェイス、IP アドレス、および DNS サーバーを含むネットワーク構成を取得します。 コマンドラインでいうところの、ipconfigです。 Get-NetIPConfigurationの使い方 IP 構成情報を取得します。このコマンドレットをパラメーターなしで実行すると、コンピューター上のすべての非仮想接続インターフェースの IP 構成情報を取得します。 PS C:\>Get-NetIPConfiguration InterfaceAlias : Wi-Fi InterfaceIndex : 9 InterfaceDescription : BUFFALO W
![【PowerShell】コマンドラインのIPCONFIGのようにIP、DNS サーバーなどの情報を取得する方法 - buralog](https://cdn-ak-scissors.b.st-hatena.com/image/square/083e2b4be617e0987b2d90170a5cd9073fd35537/height=288;version=1;width=512/https%3A%2F%2Fi1.wp.com%2Fburalog.jp%2Fwp-content%2Fuploads%2F2020%2F03%2Fpowershell-logo3.png%3Ffit%3D502%252C300%26ssl%3D1)