use .net to read report into string var

This commit is contained in:
2024-06-14 13:47:37 -04:00
parent 4c2e9979f1
commit f07edb4044
+1 -1
View File
@@ -25,7 +25,7 @@ If ( -not (Test-Path $BSODReport) ) { Write-Output "BSOD report was not found: $
# Create ticket
Import-Module $env:SyncroModule -WarningAction SilentlyContinue
$TicketComment = Get-Content $BSODReport | Out-String
$TicketComment = [System.IO.File]::ReadAllText($BSODReport)
$TicketSubject = 'BSOD on ' + $Env:COMPUTERNAME
$TicketIssueType = 'Remote Support'
$TicketStatus = 'New'