You want to know whether a Windows profile still has a record of a folder. Start with that profile’s registry files and look for the folder in ShellBags Explorer. The useful result is a recorded folder path attached to a particular profile. You still need other records to say what happened to the files inside.
If you are new to the registry, think of the two copies as before-and-after pictures of a Windows profile. You’ll browse one practice folder and leave another alone. Comparing both folders in both copies helps you see what changed and gives you a way to notice when the result surprises you. Use a Windows test account or lab VM. The Windows views below are teaching illustrations.
Make a Folder You Can Recognize Later
First create two folders next to each other in your Documents folder, using PowerShell. Keep the same test account for the whole exercise. If you plan to use the registry save commands below, start PowerShell elevated under that account so the setup and save steps share the same session. Avoid opening either child folder in File Explorer until you have saved the first registry copy.
$documents = [Environment]::GetFolderPath('MyDocuments')
$lab = Join-Path $documents ('ShellBagLab-' + [guid]::NewGuid())
New-Item -ItemType Directory -Path (Join-Path $lab 'Invoices-Lab') -Force | Out-Null
New-Item -ItemType Directory -Path (Join-Path $lab 'Control-Lab') -Force | Out-Null
$labLeave Control-Lab alone. It gives you something to compare with the folder you will browse. The random part of the parent folder name helps you recognize this run in the tool, even if you repeat the exercise.
A ShellBag is part of the information Windows keeps about folders in File Explorer. BagMRU helps represent the folder hierarchy. Its entries can point to slots under Bags, where Windows stores view settings. A registry hive is a file that stores part of the Windows registry. The registry is where Windows keeps settings and other records. In this exercise, we care about the part tied to the test account. Keeping track of which user profile each hive came from matters as much as getting the right file name. For a modern profile, start with UsrClass.dat and consider NTUSER.DAT as well.
Save a Before Copy, Then Browse One Folder
If you have a Windows VM, you can use read-only copies from a snapshot before and after browsing. From a test VM snapshot or disk image, the paths to check under the user profile are:
AppData\Local\Microsoft\Windows\UsrClass.dat
NTUSER.DATKeep the matching transaction logs if they are present. They may contain registry changes that had not yet been written to the main hive. Keep the source copies together by account and snapshot. Work from copies when opening them in forensic tools.
You can also save copies of the loaded hives from an elevated PowerShell window under the same test account. Run the following before browsing, and run it again after browsing with $phase changed to after. Use the same session so $lab still refers to your practice folder.
$phase = 'before'
$dest = Join-Path $lab ('registry-' + $phase)
New-Item -ItemType Directory -Path $dest | Out-Null
$sid = [Security.Principal.WindowsIdentity]::GetCurrent().User.Value
reg.exe save "HKU\${sid}_Classes" (Join-Path $dest 'UsrClass.dat')
reg.exe save "HKU\$sid" (Join-Path $dest 'NTUSER.DAT')Check that both commands report success and that both files exist. If you receive an access error or the Classes hive is not loaded, use a copy from the VM or disk image. The files from reg save are snapshots of the loaded registry, so record how you made them. Treat this as a lab method for a test account.
Before opening the folder, write down what you expect to see. In a fresh run, you are looking for Invoices-Lab to appear after browsing it. You also want to see whether a folder created from PowerShell alone appears. Windows activity can be more complicated than this exercise, so record both outcomes even if they differ from your expectation.
After saving the before copy, use File Explorer to open Invoices-Lab, change its view to Details or Large icons, and close the window. Then take the after copy. Creating a directory at the command line and navigating to it in Explorer are separate actions. That is what makes Control-Lab a useful comparison.
Load the Hive and Confirm the Parent Path
In ShellBags Explorer, use the offline registry load option to open the after copy of UsrClass.dat. Start with the normal filesystem branch of the parsed tree and look for the unique ShellBagLab parent. Expand it and then look for Invoices-Lab. If the tool offers a search, use the folder name to find the candidate, then check the full parent path. You can have folders with the same name in two places.
Record the hive, the profile, and the full path shown. Then load the before hive and compare the same location. If the path is present after browsing but absent in the before copy, that supports the link between the lab action and the observed record in this run. If you also find Control-Lab, write it down and revisit what happened. It is a comparison folder, and its absence is never guaranteed.
If you cannot find your test folder, check that you opened the after file for the right profile. Confirm that you browsed the folder in Explorer and closed the window before saving again. Try the other hive and review any parser warnings. A negative result is worth recording when you can say what you actually searched. For example, “The path was absent from the parsed after copy of this profile’s UsrClass.dat” tells another reader which file you checked. “No one visited this folder” makes a claim the search cannot settle.
Record Both Folders, Even if You Find Only One
Use one row per folder and one column per snapshot. Fill in each cell after you search, and use the full path rather than just the folder name. If a hive would not open or the parser reports an error, mark that result as unchecked. An unchecked result gives you less information than a completed search that found no match.
The illustration shows one possible result. If you get the same pattern, you have a useful comparison within this profile and this run. If both folders appear, check whether you selected the correct snapshots and whether the control folder was opened by an Explorer window, file picker, or another shell view. A difference is a reason to investigate the setup, not to erase a result you did not expect.
For a repeatable study, record the Windows build, parser version, test account, snapshot method, and exact actions between snapshots. If you repeat the exercise, use a fresh path or return to a clean VM snapshot. Keep the before and after hives separate so someone can rerun the comparison without reproducing your original browsing session.
Explain What the Folder Path Tells You
You can report that the analyzed profile’s hive contained a ShellBag entry for the path shown by the tool. A key’s last-write time tells you when that registry key was last updated. It is different from a file-open time, and some timestamps displayed by a parser describe the underlying folder. A newer registry time also does not give you a complete visit history. Changing a view setting, for example, can update registry data without adding a separate entry for each earlier visit. Note which field you used before adding a time to your report.
Suppose you find a record for an invoices folder. It helps you ask where that folder was and which profile stored the reference. It does not tell you which documents were read or establish who was sitting at the computer. If you need to answer a question about a file in the folder, look for a record that identifies the specific file and check it against other evidence. The Windows artifacts lesson shows how other Windows records can help with that comparison.
In the field, keep enough detail to find the entry again. Record the source image or hive identifier, profile, parsed path, and registry key where the tool exposes it. If you report a time, name the exact field and the timezone shown by the tool. A statement such as “The after copy of this profile’s UsrClass.dat contained a ShellBag for the recorded path” gives a reviewer an observation they can check.
For the practice run, finish by writing down the two hive copies you compared and whether the exact Invoices-Lab path appeared in each. That gives the next reader enough information to check your finding.