9 lines
211 B
PowerShell
9 lines
211 B
PowerShell
|
$ErrorAction = "Stop"
|
||
|
|
||
|
$net = Get-WmiObject -class win32_NetworkAdapterConfiguration -Filter 'ipenabled = "true"'
|
||
|
$result = @{
|
||
|
ip_addresses = $net.ipaddress
|
||
|
}
|
||
|
|
||
|
Write-Output $(ConvertTo-Json $result)
|