Skip to content

Instantly share code, notes, and snippets.

@jsturtevant
Created March 2, 2022 23:52
Show Gist options
  • Save jsturtevant/93c11fa23ad22e09c816cb603ba84542 to your computer and use it in GitHub Desktop.
Save jsturtevant/93c11fa23ad22e09c816cb603ba84542 to your computer and use it in GitHub Desktop.
hcs file system corruption finder
Get-ChildItem –Path "C:\ProgramData\root\io.containerd.snapshotter.v1.windows\snapshots\" -Recurse | ForEach-Object { fsutil.exe hardlink list $_.FullName; if (-not($?)){ echo $_.FullName > failures.log } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment