Updated
This commit is contained in:
parent
2c099afa54
commit
7d66fc7a2e
1 changed files with 5 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ $WebhookURL = "https://n8n.questcomputers.be/webhook-test/8fde21e2-937f-4142-b98
|
|||
|
||||
# Remote scripts
|
||||
$ScriptGetComputerInfo = "https://git.questcomputers.be/quest-scripts/scripts/raw/branch/main/pc_information.ps1"
|
||||
$ScriptGetInstalledAV = "https://git.questcomputers.be/quest-scripts/scripts/raw/branch/main/installed_av.ps1"
|
||||
|
||||
|
||||
# Check if C:\Quest exists...
|
||||
|
|
@ -69,11 +70,13 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) {
|
|||
|
||||
# === SEND TO WEBHOOK ====================================================
|
||||
try {
|
||||
$computerInfo = irm $ScriptGetComputerInfo | iex
|
||||
$GetComputerInfo = irm $ScriptGetComputerInfo | iex
|
||||
$GetInstalledAV = irm $ScriptGetInstalledAV | iex
|
||||
|
||||
$payload = @{
|
||||
ticket = $ticket
|
||||
computerInfo = $computerInfo | ConvertFrom-Json
|
||||
GetComputerInfo = $GetComputerInfo | ConvertFrom-Json
|
||||
GetInstalledAV = $GetInstalledAV | ConvertFrom-Json
|
||||
} | ConvertTo-Json -Compress
|
||||
|
||||
$response = Invoke-RestMethod -Uri $WebhookURL -Method Post `
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue