-
This commit is contained in:
parent
04c44a1295
commit
11ad432ec9
2 changed files with 6 additions and 3 deletions
|
|
@ -77,9 +77,12 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) {
|
||||||
|
|
||||||
# === SEND TO WEBHOOK ====================================================
|
# === SEND TO WEBHOOK ====================================================
|
||||||
try {
|
try {
|
||||||
|
$computerInfo = Get-ComputerInfo | ConvertTo-Json -Compress
|
||||||
|
|
||||||
$payload = @{
|
$payload = @{
|
||||||
ticket = $ticket
|
ticket = $ticket
|
||||||
remoteData = $remoteData
|
remoteData = $remoteData
|
||||||
|
computerInfo = $computerInfo | ConvertFrom-Json
|
||||||
} | ConvertTo-Json -Compress
|
} | ConvertTo-Json -Compress
|
||||||
|
|
||||||
$response = Invoke-RestMethod -Uri $WebhookURL -Method Post `
|
$response = Invoke-RestMethod -Uri $WebhookURL -Method Post `
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Get-ComputerInfo | ConvertTo-Json > C:\Quest\computerinfo.json
|
Get-ComputerInfo | ConvertTo-Json
|
||||||
Loading…
Add table
Add a link
Reference in a new issue