Technical case study ·

Recovering 90 minutes of lost Word work.

An AI-assisted investigation into lost Microsoft Word work, using PowerShell, filesystem evidence and document-content verification rather than relying on the filename alone.

NinjaOnePowerShellMicrosoft 365NetDocumentsNTFS USN JournalOffice Open XML
recovery / outcome
User verified 90 min

of work recovered

Editable Word document Original source preserved No workstation restart

01 / The problem

A user at a legal organisation reported that a Microsoft Word document had disappeared after being closed. Around an hour and a half of work was at stake, and the user had printed a copy earlier that morning.

I began investigating through NinjaOne's PowerShell interface rather than restarting the workstation or clearing application caches. The environment included Microsoft 365, Outlook, SharePoint and NetDocuments ndOffice, so there were several possible locations for a recovery copy.

02 / Following the evidence

The first recovery attempt produced a valid Word document, but the user confirmed it was the wrong one. Instead of treating that as the end of the investigation, I narrowed the search using file metadata and the application's activity.

01

Recovery locations

Checked AutoRecover, unsaved documents, NetDocuments backups, recent shortcuts, SharePoint and the Office cache.

02

Temporary files

Examined file signatures and Office ZIP structures, then used SHA-256 hashes to eliminate duplicate candidates.

03

Print history

Checked the local printer queue and spool directory. Completed jobs were not retained and operational logging was disabled.

04

Filesystem journal

Read the NTFS USN Journal to correlate Word's temporary files, AutoRecover updates and rename/delete events.

Application logs also recorded ndOffice exceptions around the closing of a document. Those were useful context, but they did not prove that the add-in caused the loss.

03 / The breakthrough

The USN Journal showed that Word had been creating and updating two distinct AutoRecover files that morning. One appeared tied to the document the user had already rejected. The other was named after a different matter, and its recovery file was renamed and deleted shortly before the other document closed.

  1. AutoRecover created

    Word creates a recovery file under the previous matter's filename.

  2. Recovery file updated

    Journal entries show continued writes to the same named recovery file.

  3. A cached document is modified

    A Word attachment in Outlook's cache has a matching modification time. The associated AutoRecover file is renamed and deleted moments later.

  4. Another document closes

    NetDocuments creates the unsaved backup that the user later identifies as the wrong document.

This made the Outlook attachment a strong candidate: the name did not match the requested document, but the timing was consistent with the user's account. I had already preserved a separate copy of it during the earlier search.

// Why the journal mattered

The USN Journal records filesystem changes, not the document itself. Its value here was in connecting the timeline to a surviving file that could be inspected.

04 / Checking the contents

A DOCX is an Office Open XML package. Using PowerShell and .NET's ZIP support, I opened the recovered copy and inspected word/document.xml for the expected terms. The check returned Boolean results, rather than exposing the document text.

verification / anonymised
Expected document terms
Found
Matching organisation term
Found
Original template reference
Still present

The original identifiers and document contents have been omitted.

The findings strongly suggested that an existing document had been edited without being renamed to match its new subject. I asked the user to open the preserved copy and verify it directly.

05 / Outcome & lessons learned

The user confirmed that this was the missing document. The original editable Word file was recovered, without having to recreate it from the printout or use specialist disk-recovery software.

The biggest lesson was not to trust a filename in isolation. Matching the timeline, eliminating duplicate files and verifying the contents provided better evidence than another broad filesystem search.

// AI-assisted approach

I used AI to help generate PowerShell commands, interpret diagnostic outputs and suggest investigative steps. I ran the investigation on the client workstation, preserved the recovery candidate, communicated with the user and obtained confirmation that the recovered file was correct. The case is a practical example of using AI alongside hands-on IT support.

This case study has been anonymised. Client names, document names, identifiable paths and confidential content are intentionally omitted. The precise cause of the original loss was not established.

← All case studiesNext: Teams backgrounds deployment →