allow running the script adhoc to update an existing ticket

This commit is contained in:
2024-06-21 14:24:37 -04:00
parent ea6f7cd489
commit ebc98e979e
+3
View File
@@ -1,3 +1,6 @@
# Check the RMM runtime variable to see if it's set to 'null', if not then set the $TicketID
If ( $TicketNumber.Trim().ToLower() -ne 'null' ) { $TicketID = $TicketNumber }
# Run SFC to check the filesystem, convert the result from Unicode to UTF8, delete the intermediate $tempFile
$tempFile = New-TemporaryFile
$(sfc.exe /scannow) | Out-File $tempFile