To export storage errors around a Windows freeze, filter the System event log to a short interval around the incident and save the filtered events as an .evtx file. Keep the event source, ID, timestamp, full message, and XML details together. This gives you a record to compare with the freeze, without assuming that every nearby warning caused it.
The steps below are for a local Windows 11 or Windows 10 PC. Start with Event Viewer; the optional PowerShell method also saves searchable messages and event XML. Neither method repairs a drive or changes its partitions.
If you are still deciding what to check first, start with PC Freezes With Disk Errors: What to Check First. It helps you assess data safety and the scope of the freeze before choosing a detailed investigation.
Record the freeze time before choosing a filter
Write down when the freeze began, how long it lasted, and whether the PC recovered or you restarted it. Include the date, time zone, and UTC offset at the time of the incident. An offset such as -04:00 means four hours behind UTC.
For example, an illustrative incident at 2026-10-08 14:32:00 -04:00 occurred at 18:32:00 UTC. A useful first window is 2:27–2:37 p.m. in that same local time zone. Five minutes on either side is a starting point, not a Windows requirement. Extend the end time if the freeze or restart continued beyond it.
Event Viewer adjusts displayed event times to the viewing computer’s time zone. In Details > XML View, a TimeCreated value ending in Z is UTC. Compare times on the same basis, especially when someone opens your saved log on another PC. Use the incident’s offset, including daylight saving time where applicable; today’s offset may be different.
If you only know the time approximately, record that uncertainty and start with a wider interval. If the PC clock was wrong, note the discrepancy rather than silently changing the timestamps in your export.
Save the selected interval in Event Viewer
Once the PC is responsive, save the evidence before experimenting with fixes. If files are becoming unreadable or the drive repeatedly disappears, prioritize preserving irreplaceable data. Stop attempts to reproduce the freeze if they cause more access failures.
Set the time window
- Search Start for Event Viewer and open it. If access is denied, reopen it with Run as administrator.
- Expand Windows Logs and select System.
- Select Filter Current Log. Under Logged, choose Custom range and enter your start and end dates and times. Use times that match the viewer’s time zone.
- For this first export, leave Event sources and Event IDs unrestricted, and leave the level checkboxes unselected so all levels remain eligible. The time window limits the collection while preserving nearby context, including informational entries.
Save and verify the export
- Apply the filter and check the displayed dates. Select Save Filtered Log File As, then save as Event Files (
*.evtx), for examplefreeze-system.evtx. - If prompted to include display information, include it in the language you are using. Keep any accompanying
LocaleMetaDatafolder with the event file when moving the export. - Use Open Saved Log to reopen the file. Confirm that it contains the incident window and that you can inspect an event’s General and Details tabs.
Keep the original log. Do not use Clear Log as part of this process. Saving a filtered log preserves the selected records; it does not require removing the originals.
Keep a short text note beside the export with the freeze time, time zone, filter boundaries, symptoms, and whether you forced a restart. If a long freeze separates the initial symptoms from the next startup, save both periods and label them clearly.
Keep the source and message attached to each event
An event ID is meaningful in the context of its source. Different providers can use the same number. When reviewing an entry, preserve these details together:
- Source or Provider Name and Event ID: who recorded the event and which event definition it uses. The full provider name in XML may differ from the shorter Source label.
- Logged time and EventRecordID: when the record was logged and its identifier within that log. The record ID is not a disk number.
- Full General message: including device paths, disk numbers, status values, and any logical block address.
- Details > XML View: the underlying event fields, including values that may not appear in the General text.
For an entry you want help interpreting, copy the full General text and XML into a separate text file. Keep the .evtx export as well. A screenshot of the event list can cut off the message and omit the device path.
Look for storage-related sources and messages within the saved interval. Names you may encounter include disk, storahci, stornvme, and Ntfs; your controller or driver may use another name. Treat these as starting points, not a complete filter list.
Read the sequence around the freeze. An event recorded after recovery or startup may describe an earlier problem. A nearby timestamp gives you something to investigate; it does not establish which component failed.
Use the export to choose the next check
Match both the source and the message before using this table. The numbers alone are insufficient.
| What the saved event shows | What to check next |
|---|---|
| A storage driver records 129 with a device-reset message | Compare the reset time with the freeze. Save the provider, full device path, and nearby storage entries. Note the controller model, driver version, and recent changes before seeking device-specific guidance. A RaidPort number is not a Windows disk number. |
| Source disk, ID 153, with a retried I/O message | Preserve the disk number, device path, and logical block address exactly, including any 0x prefix. Check whether the same event pattern recurs during separate freezes. A retry alone does not prove data loss or identify a failed SSD. |
| The message names a disk you cannot identify | Open Disk Management and compare the current disk number, capacity, partitions, and drive letters. Record the device model too. Recheck identity after a restart or reconnection; current numbering does not prove an old event refers to the same device. RAID and Storage Spaces need their own mapping. |
| Source disk, ID 7, with a bad-block message, or repeated read failures | Confirm that any health report refers to the same device and time period. Preserve data before prolonged testing. A health label by itself does not resolve the event, and the event alone does not isolate the failed component. |
| Only Microsoft-Windows-Kernel-Power, ID 41, appears after startup | Record whether you held the power button. This event indicates an unclean shutdown and is logged at the next startup; it does not establish that storage caused the freeze. Review the pre-freeze interval separately. |
Follow the matching troubleshooting guide
For a storage-driver reset message, see Event ID 129: What Reset to Device Means.
For a disk I/O retry, see Disk Event ID 153: What an I/O Retry Tells You.
If you cannot identify the disk in an event, see Which Drive Is Disk 0 in Windows?.
If a disk bad-block event conflicts with a Good health rating in CrystalDiskInfo, see Disk Event ID 7 but CrystalDiskInfo Says Good: What to Check.
For an NTFS corruption or offline-check message, see NTFS Event IDs 55 and 98: What to Check Next.
If the filtered log has no matching events
If there are no matching events, first verify the date, time zone, and filter settings. Widen the window to cover the actual freeze and recovery. Older records may already have been overwritten, and a hard hang can prevent useful details from reaching the log. An empty result is not a drive-health test.
If only one application froze, inspect Windows Logs > Application for the same interval and save that filtered log separately. Keep the application name and the work it was doing in your incident note.
Optional PowerShell export of XML and messages
If you only need an .evtx export, you can stop after the Event Viewer steps and incident note above. Use this optional method when you also want XML and searchable message text. It reads the local System log and writes three files: events.xml, messages.csv, and collection-notes.txt. It does not create an .evtx file.
Prepare the incident time and destination
Open Windows PowerShell using Run as administrator. The example uses Windows PowerShell 5.1 syntax. No particular target-drive file system is required because the command reads event records, not the affected volume’s contents.
Before pasting the whole block, replace the example timestamp with your freeze time in YYYY-MM-DDTHH:MM:SS±HH:MM format. Replace the offset as well as the date and clock time. Adjust the two five-minute margins if needed. The destination defaults to your Desktop; if that location is on an unstable drive, change $destination to an existing folder on a stable drive. A new subfolder is created on each run.
The script sorts the selected events and holds both the records and their XML in memory. A wider interval or a busy log can still require substantial memory. Start with the incident window and expand it only as needed.
Run the collection script
& { $ErrorActionPreference = 'Stop' $freeze = [DateTimeOffset]::ParseExact( '2026-10-08T14:32:00-04:00', "yyyy-MM-dd'T'HH:mm:sszzz", [Globalization.CultureInfo]::InvariantCulture ) $start = $freeze.AddMinutes(-5).UtcDateTime $end = $freeze.AddMinutes(5).UtcDateTime $destination = [Environment]::GetFolderPath('Desktop') $events = @(Get-WinEvent -FilterHashtable @{ LogName = 'System' StartTime = $start EndTime = $end } | Sort-Object TimeCreated, RecordId) if ($events.Count -eq 0) { throw 'No events returned. Check the time window.' } $folder = Join-Path $destination ( 'Freeze-' + [guid]::NewGuid().ToString('N') ) New-Item -ItemType Directory -Path $folder | Out-Null $xml = @('<Events>') $xml += @($events | ForEach-Object { $_.ToXml() }) $xml += '</Events>' $xml | Set-Content -Encoding UTF8 -LiteralPath ( Join-Path $folder 'events.xml' ) $events | Select-Object @{ Name = 'TimeUtc' Expression = { if ($null -ne $_.TimeCreated) { $_.TimeCreated.ToUniversalTime().ToString('o') } } }, ProviderName, Id, LevelDisplayName, RecordId, LogName, MachineName, Message | Export-Csv -NoTypeInformation -Encoding UTF8 -LiteralPath ( Join-Path $folder 'messages.csv' ) @( "FreezeTimeWithOffset: $($freeze.ToString('o'))" "StartTimeUtc: $($start.ToString('o'))" "EndTimeUtc: $($end.ToString('o'))" 'Log: System; all providers and levels in this interval' "EventCount: $($events.Count)" ) | Set-Content -Encoding UTF8 -LiteralPath ( Join-Path $folder 'collection-notes.txt' ) [pscustomobject]@{ Events = $events.Count Folder = $folder } | Format-List}
The query applies the time boundaries as it retrieves records. It does not load the entire System log and then filter it in PowerShell. All providers and levels inside the interval are retained so an unfamiliar driver name or an informational event is not silently excluded.
Verify the saved files
The displayed Events value counts every returned System event, not just storage errors. In the reported folder, check these files:
events.xmlcontains each event’s XML representation inside anEventswrapper. Keep it for the original field names, device data, and timestamps.messages.csvcontains UTC time, provider, ID, level, record ID, log, computer name, and the available message text. Open it in a text editor to check the message; spreadsheet applications may display long fields or numeric-looking text differently.collection-notes.txtrecords the input time, UTC boundaries, scope, and count. Add your symptoms and restart details separately.
XML fields and rendered messages serve different purposes. If a message is blank or cannot be displayed, keep the XML and .evtx; do not replace the missing text with “no error.” Message rendering can depend on the provider’s resources.
If PowerShell reports “No events were found that match the specified selection criteria,” revisit the time window. An access-denied or file-write error is a collection failure, not an empty successful export. The block stops on errors; if it leaves a partial folder, do not treat that folder as a finished collection. Correct the reported issue and run it again.
Share a reviewed copy
Keep the original export privately. Before posting a text extract or screenshot publicly, review computer and user names, SIDs, file paths, network locations, and device serial numbers. Redact personal details in a copy, using consistent placeholders so related entries can still be matched.
An .evtx file can contain more information than the visible screenshot. Share the full file through an appropriate private support channel when needed. For a public question, provide the reviewed event text, its provider and ID, the time zone and window, your symptoms, and whether the pattern has repeated.
Leave a Reply