# this places it in C:\temp\crystaldiskinfoĮxpand-Archive C:\temp\crystaldiskinfo.zip -DestinationPath C:\temp\crystaldiskinfo # downloads CrystalDiskInfo Portable and extracts it $result = Create-Syncro-Ticket -Subdomain $subdomain -Subject "Get CrystalDiskInfo for $env:computername" -IssueType "Hardware" -Status "New" Rmm-Alert -Category 'Hardware' -Body 'CrystalDiskInfo Details' $startAt = (Get-Date).AddMinutes(-30).toString("o") Update -Syncro -Ticket -Subdomain $subdomain -TicketIdOrNumber $ticket -Status "Resolved" Upload -File -Subdomain $subdomain -FilePath "C:\temp\crystaldiskinfo\DiskInfo.txt" # Marks ticket as resolved and closedĬreate -Syncro -Ticket -TimerEntry -Subdomain $subdomain -TicketIdOrNumber $ticket -StartTime $startat -DurationMinutes $duration -Notes "Automated system performed task." -UserIdOrEmail $email # This will upload the file to Syncro and attach it to the Asset. # run crystaldiskinfo /copyexit # generates DiskInfo.txt fileĬ:\temp\crystaldiskinfo\DiskInfo64.exe /CopyExit # Put script data below here # downloads CrystalDiskInfo Portable and extracts it # this places it in C:\temp\crystaldiskinfoĮxpand -Archive C:\temp\crystaldiskinfo.zip -DestinationPath C:\temp\crystaldiskinfo Rmm -Alert -Category 'Hardware' -Body 'CrystalDiskInfo Details' # Create Ticket Entry $result = Create -Syncro -Ticket -Subdomain $subdomain -Subject "Get CrystalDiskInfo for $env:computername" -IssueType "Hardware" -Status "New" write-output $result $ticket = $ # This creates an alert in Syncro and triggers the "New RMM Alert" in the Notification Center - automatically de-duping per asset. $subdomain = "subdomain" $email = " " $duration = 15 $startAt = ( Get-Date ).AddMinutes ( - 30 ).toString ( "o" )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |