-
This commit is contained in:
parent
eda39def22
commit
5ef9eb9023
1 changed files with 6 additions and 3 deletions
|
|
@ -1,10 +1,13 @@
|
|||
$ScriptTitle = "Cleanup Script"
|
||||
$WebhookURL = "https://n8n.questcomputers.be/webhook-test/8fde21e2-937f-4142-b983-6e1606e29335"
|
||||
$GetComputerInfo = "https://git.questcomputers.be/quest-scripts/scripts/raw/branch/main/pc_information.ps1"
|
||||
|
||||
$LogDirectory = "C:\Quest"
|
||||
# Remote scripts
|
||||
$ScriptGetComputerInfo = "https://git.questcomputers.be/quest-scripts/scripts/raw/branch/main/pc_information.ps1"
|
||||
|
||||
|
||||
# Check if C:\Quest exists...
|
||||
$LogDirectory = "C:\Quest"
|
||||
|
||||
if (-not (Test-Path $LogDirectory)) {
|
||||
New-Item -Path $LogDirectory -ItemType Directory -Force | Out-Null
|
||||
}
|
||||
|
|
@ -66,7 +69,7 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) {
|
|||
|
||||
# === SEND TO WEBHOOK ====================================================
|
||||
try {
|
||||
$computerInfo = irm $GetComputerInfo | iex
|
||||
$computerInfo = irm $ScriptGetComputerInfo | iex
|
||||
|
||||
$payload = @{
|
||||
ticket = $ticket
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue