diff --git a/playbook/shopfloor-setup/gea-shopfloor-collections/Report-AssetToShopDB.ps1 b/playbook/shopfloor-setup/gea-shopfloor-collections/Report-AssetToShopDB.ps1 index 6c29b72..e97d9d5 100644 --- a/playbook/shopfloor-setup/gea-shopfloor-collections/Report-AssetToShopDB.ps1 +++ b/playbook/shopfloor-setup/gea-shopfloor-collections/Report-AssetToShopDB.ps1 @@ -267,8 +267,8 @@ if ($manufacturer) { $body['manufacturer'] = $manufacturer } if ($model) { $body['model'] = $model } if ($lastBootTime) { $body['lastBootTime'] = $lastBootTime } -Log ("POST {0} host={1} serial={2} pcType={3} make={4} model={5} machineNo={6} user={7} ips={8}" -f ` - $ApiUrl, $hostname, $serialNumber, $pcType, $manufacturer, $model, $machineNo, $loggedInUser, (($interfaces | ForEach-Object { $_.IPAddress }) -join ',')) +Log ("POST {0} host={1} serial={2} pcType={3} make={4} model={5} os={6} boot={7} machineNo={8} user={9} ips={10}" -f ` + $ApiUrl, $hostname, $serialNumber, $pcType, $manufacturer, $model, $osVersion, $lastBootTime, $machineNo, $loggedInUser, (($interfaces | ForEach-Object { $_.IPAddress }) -join ',')) try { $resp = Invoke-RestMethod -Uri $ApiUrl -Method Post -Body $body -TimeoutSec $TimeoutSec -ErrorAction Stop