-
This commit is contained in:
parent
7520181a35
commit
b6fc0ac48f
1 changed files with 7 additions and 3 deletions
10
cleanup.ps1
10
cleanup.ps1
|
|
@ -2,6 +2,7 @@ $ScriptTitle = "Cleanup Script"
|
|||
$WebhookURL = "https://n8n.questcomputers.be/webhook-test/8fde21e2-937f-4142-b983-6e1606e29335"
|
||||
|
||||
# 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"
|
||||
$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
|
||||
}
|
||||
|
||||
# Run scripts
|
||||
$CreateRestorePoint = irm $ScriptCreateRestorePoint | iex
|
||||
$GetComputerInfo = irm $ScriptGetComputerInfo | iex
|
||||
$GetInstalledAV = irm $ScriptGetInstalledAV | iex
|
||||
|
||||
# Send webhook
|
||||
try {
|
||||
$GetComputerInfo = irm $ScriptGetComputerInfo | iex
|
||||
$GetInstalledAV = irm $ScriptGetInstalledAV | iex
|
||||
|
||||
$payload = @{
|
||||
ticket = $ticket
|
||||
$CreateRestorePoint = $CreateRestorePoint | ConvertFrom-Json
|
||||
GetComputerInfo = $GetComputerInfo | ConvertFrom-Json
|
||||
GetInstalledAV = $GetInstalledAV | ConvertFrom-Json
|
||||
} | ConvertTo-Json -Compress
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue