-
This commit is contained in:
parent
7520181a35
commit
b6fc0ac48f
1 changed files with 7 additions and 3 deletions
|
|
@ -2,6 +2,7 @@ $ScriptTitle = "Cleanup Script"
|
||||||
$WebhookURL = "https://n8n.questcomputers.be/webhook-test/8fde21e2-937f-4142-b983-6e1606e29335"
|
$WebhookURL = "https://n8n.questcomputers.be/webhook-test/8fde21e2-937f-4142-b983-6e1606e29335"
|
||||||
|
|
||||||
# Remote scripts
|
# Remote scripts
|
||||||
|
$ScriptCreateRestorePoint = "https://git.questcomputers.be/quest-scripts/scripts/raw/branch/main/create_restorepoint.ps1"
|
||||||
$ScriptGetComputerInfo = "https://git.questcomputers.be/quest-scripts/scripts/raw/branch/main/pc_information.ps1"
|
$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"
|
$ScriptGetInstalledAV = "https://git.questcomputers.be/quest-scripts/scripts/raw/branch/main/installed_av.ps1"
|
||||||
|
|
||||||
|
|
@ -75,13 +76,16 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) {
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
# Send webhook
|
# Run scripts
|
||||||
try {
|
$CreateRestorePoint = irm $ScriptCreateRestorePoint | iex
|
||||||
$GetComputerInfo = irm $ScriptGetComputerInfo | iex
|
$GetComputerInfo = irm $ScriptGetComputerInfo | iex
|
||||||
$GetInstalledAV = irm $ScriptGetInstalledAV | iex
|
$GetInstalledAV = irm $ScriptGetInstalledAV | iex
|
||||||
|
|
||||||
|
# Send webhook
|
||||||
|
try {
|
||||||
$payload = @{
|
$payload = @{
|
||||||
ticket = $ticket
|
ticket = $ticket
|
||||||
|
$CreateRestorePoint = $CreateRestorePoint | ConvertFrom-Json
|
||||||
GetComputerInfo = $GetComputerInfo | ConvertFrom-Json
|
GetComputerInfo = $GetComputerInfo | ConvertFrom-Json
|
||||||
GetInstalledAV = $GetInstalledAV | ConvertFrom-Json
|
GetInstalledAV = $GetInstalledAV | ConvertFrom-Json
|
||||||
} | ConvertTo-Json -Compress
|
} | ConvertTo-Json -Compress
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue