Compare commits

..
2 Commits
Author SHA1 Message Date
dyoder b738b25b9a trim 2024-06-21 14:28:50 -04:00
dyoder ebc98e979e allow running the script adhoc to update an existing ticket 2024-06-21 14:24:37 -04:00
+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.Trim() }
# 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