Skip to content

Instantly share code, notes, and snippets.

@Nathan2055
Last active December 5, 2020 23:51
Show Gist options
  • Save Nathan2055/6d6be354a35f2fd07b77bd155a13f8e9 to your computer and use it in GitHub Desktop.
Save Nathan2055/6d6be354a35f2fd07b77bd155a13f8e9 to your computer and use it in GitHub Desktop.
Script for fixing Windows permissions and copying over data from my old external hard drive
icacls F: /setowner "Administrators" /T /C
takeown /R /F F:
icacls F: /t /c /GRANT Everyone:F
robocopy /ZB /E /COPY:DT /DCOPY:DT F: "G:\Data from Old Disk Images\8 - 2019-06-18 - Samsung HDD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment