diff --git a/plugins/synced_folders/smb/scripts/host_info.ps1 b/plugins/synced_folders/smb/scripts/host_info.ps1 index 7d283a7f4..a1edbb5e9 100644 --- a/plugins/synced_folders/smb/scripts/host_info.ps1 +++ b/plugins/synced_folders/smb/scripts/host_info.ps1 @@ -1,8 +1,8 @@ $ErrorAction = "Stop" -$net = Get-WmiObject -class win32_NetworkAdapterConfiguration -Filter 'ipenabled = "true"' +$net = Get-NetIPAddress $result = @{ - ip_addresses = $net.ipaddress + ip_addresses = $net.IPAddress } Write-Output $(ConvertTo-Json $result)