diff --git a/cleanup.ps1 b/cleanup.ps1 index 87f2da0..1566cdb 100644 --- a/cleanup.ps1 +++ b/cleanup.ps1 @@ -77,9 +77,12 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) { # === SEND TO WEBHOOK ==================================================== try { + $computerInfo = Get-ComputerInfo | ConvertTo-Json -Compress + $payload = @{ - ticket = $ticket - remoteData = $remoteData + ticket = $ticket + remoteData = $remoteData + computerInfo = $computerInfo | ConvertFrom-Json } | ConvertTo-Json -Compress $response = Invoke-RestMethod -Uri $WebhookURL -Method Post ` diff --git a/pc_information.ps1 b/pc_information.ps1 index 7d898ce..f5fe190 100644 --- a/pc_information.ps1 +++ b/pc_information.ps1 @@ -1 +1 @@ -Get-ComputerInfo | ConvertTo-Json > C:\Quest\computerinfo.json \ No newline at end of file +Get-ComputerInfo | ConvertTo-Json \ No newline at end of file