-
This commit is contained in:
parent
347ffb1b05
commit
f469f3a444
2 changed files with 7 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ if ($result -eq [System.Windows.Forms.DialogResult]::OK) {
|
|||
|
||||
# Send webhook
|
||||
try {
|
||||
$CreateRestorePoint = irm $ScriptCreateRestorePoint | iex
|
||||
$CreateRestorePoint = irm $ScriptCreateRestorePoint | iex -ArgumentList $ticket, $ScriptStartTime, $ScriptResult
|
||||
$GetComputerInfo = irm $ScriptGetComputerInfo | iex
|
||||
$GetInstalledAV = irm $ScriptGetInstalledAV | iex
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
param(
|
||||
[string]$TicketNumber,
|
||||
[datetime]$ScriptStartTime,
|
||||
[object]$ScriptResult
|
||||
)
|
||||
|
||||
$RestorePointName = "QUEST-CLEANUP-$($TicketNumber -replace '[^A-Za-z0-9]', '')-$($ScriptStartTime.ToString('yyyy-MM-dd'))"
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue