This commit is contained in:
Joeri 2026-02-20 16:32:46 +01:00
parent f86d3b7518
commit 7252ef245a

View file

@ -84,12 +84,13 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) {
# Set the $Name variable for the external script to use # Set the $Name variable for the external script to use
$Name = "QUEST-CLEANUP-$ticket-$randomChars-$dateStr" $Name = "QUEST-CLEANUP-$ticket-$randomChars-$dateStr"
# Webhook # Run scripts
try {
$CreateRestorePoint = irm $ScriptCreateRestorePoint | iex $CreateRestorePoint = irm $ScriptCreateRestorePoint | iex
$GetComputerInfo = irm $ScriptGetComputerInfo | iex $GetComputerInfo = irm $ScriptGetComputerInfo | iex
$GetInstalledAV = irm $ScriptGetInstalledAV | iex $GetInstalledAV = irm $ScriptGetInstalledAV | iex
# Webhook
try {
$payload = @{ $payload = @{
ticket = $ticket ticket = $ticket
CreateRestorePoint = $CreateRestorePoint | ConvertFrom-Json CreateRestorePoint = $CreateRestorePoint | ConvertFrom-Json