update ticket subject to be user facing
added $TimeAttributedToUser for billing delete Fix-WindowsHealth script after running
This commit is contained in:
@@ -26,7 +26,7 @@ If ( -not (Test-Path $BSODReport) ) { Write-Output "BSOD report was not found: $
|
|||||||
# Create ticket
|
# Create ticket
|
||||||
Import-Module $env:SyncroModule -WarningAction SilentlyContinue
|
Import-Module $env:SyncroModule -WarningAction SilentlyContinue
|
||||||
$BSODReportContent = Get-Content -Path $BSODReport
|
$BSODReportContent = Get-Content -Path $BSODReport
|
||||||
$TicketSubject = 'BSOD on ' + $Env:COMPUTERNAME
|
$TicketSubject = 'System Crash on ' + $Env:COMPUTERNAME
|
||||||
$TicketIssueType = 'Remote Support'
|
$TicketIssueType = 'Remote Support'
|
||||||
$TicketStatus = 'New'
|
$TicketStatus = 'New'
|
||||||
Try {
|
Try {
|
||||||
@@ -57,10 +57,11 @@ Switch ( $CulpritProvider ) {
|
|||||||
{ $_ -match $ProviderMicrosoft } {
|
{ $_ -match $ProviderMicrosoft } {
|
||||||
$TicketComment = "I've analyzed the crash report and it indicates a problem with a Windows component. I'll repair the system now."
|
$TicketComment = "I've analyzed the crash report and it indicates a problem with a Windows component. I'll repair the system now."
|
||||||
Create-Syncro-Ticket-Comment -TicketIdOrNumber $TicketID -Subject "Update" -Body $TicketComment -Hidden $false -DoNotEmail $false
|
Create-Syncro-Ticket-Comment -TicketIdOrNumber $TicketID -Subject "Update" -Body $TicketComment -Hidden $false -DoNotEmail $false
|
||||||
Create-Syncro-Ticket-TimerEntry -TicketIdOrNumber $TicketID -StartTime $StartAt -DurationMinutes $BillableTimeInMinutes -Notes $TimerNotes -UserIdOrEmail '' -ChargeTime $true
|
Create-Syncro-Ticket-TimerEntry -TicketIdOrNumber $TicketID -StartTime $StartAt -DurationMinutes $BillableTimeInMinutes -Notes $TimerNotes -UserIdOrEmail $TimeAttributedToUser -ChargeTime $true
|
||||||
$FixWindowsHealth = Download-File -URL 'https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Fix-WindowsHealth.ps1'
|
$FixWindowsHealth = Download-File -URL 'https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Fix-WindowsHealth.ps1'
|
||||||
Start-Sleep -Seconds 120
|
Start-Sleep -Seconds 120
|
||||||
. $FixWindowsHealth
|
. $FixWindowsHealth
|
||||||
|
If ( Test-Path $FixWindowsHealth ) { Remove-Item $FixWindowsHealth -Force -ErrorAction SilentlyContinue }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user