allow running the script adhoc to update an existing ticket
This commit is contained in:
@@ -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
|
# Run SFC to check the filesystem, convert the result from Unicode to UTF8, delete the intermediate $tempFile
|
||||||
$tempFile = New-TemporaryFile
|
$tempFile = New-TemporaryFile
|
||||||
$(sfc.exe /scannow) | Out-File $tempFile
|
$(sfc.exe /scannow) | Out-File $tempFile
|
||||||
|
|||||||
Reference in New Issue
Block a user