-
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 ====================================================
|
||||
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 `
|
||||
|
|
|
|||
|
|
@ -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