Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Get-WMIObject win32_NetworkAdapterConfiguration |
- Where-Object { $_.IPEnabled -eq $true } |
- Foreach-Object { $_.IPAddress } |
- Foreach-Object { [IPAddress]$_ } |
- Where-Object { $_.AddressFamily -eq 'Internetwork' } |
- Foreach-Object { $_.IPAddressToString }
Advertisement
Add Comment
Please, Sign In to add comment