Back to articles
February 15, 2025

Powershell 2.0 get ip address (Windows 2008)

ip_address=(Get-WmiObject 
                  -Class Win32_NetworkAdapterConfiguration 
                  -Filter 'IPEnabled=True').IPAddress
Loading comments...