attrib -r -s -h "G:\bootmgr" attrib -r -s -h "G:\BOOTNXT" attrib -r -s -h "G:\config.sys" attrib -r -s -h "G:\hiberfil.sys" attrib -r -s -h "G:\pagefile.sys" attrib -r -s -h "G:\swapfile.sys" attrib -r -s -h /s /d "G:\$$PendingFiles" attrib -r -s -h /s /d "G:\boot" attrib -r -s -h /s /d "G:\Documents and Settings" attrib -r -s -h /s /d "G:\PerfLogs" attrib -r -s -h /s /d "G:\Program Files" attrib -r -s -h /s /d "G:\Program Files (x86)" attrib -r -s -h /s /d "G:\ProgramData" attrib -r -s -h /s /d "G:\Recovery" attrib -r -s -h /s /d "G:\Users" attrib -r -s -h /s /d "G:\VirtualStore" attrib -r -s -h /s /d "G:\Windows" takeown /f "G:\bootmgr" /a > nul takeown /f "G:\BOOTNXT" /a > nul takeown /f "G:\config.sys" /a > nul takeown /f "G:\hiberfil.sys" /a > nul takeown /f "G:\pagefile.sys" /a > nul takeown /f "G:\swapfile.sys" /a > nul takeown /f "G:\$$PendingFiles" /r /d y /a > nul takeown /f "G:\boot" /r /d y /a > nul takeown /f "G:\Documents and Settings" /r /d y /a > nul takeown /f "G:\PerfLogs" /r /d y /a > nul takeown /f "G:\Program Files" /r /d y /a > nul takeown /f "G:\Program Files (x86)" /r /d y /a > nul takeown /f "G:\ProgramData" /r /d y /a > nul takeown /f "G:\Recovery" /r /d y /a > nul takeown /f "G:\Users" /r /d y /a > nul icacls "G:\$$PendingFiles" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls "G:\boot" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls "G:\Documents and Settings" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls "G:\PerfLogs" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls "G:\Program Files" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls "G:\Program Files (x86)" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls "G:\ProgramData" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls "G:\Recovery" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls "G:\Users" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls G:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18 /grant:r %UserName%:(OI)(CI)F > nul icacls G:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18 /grant:r Administrators:(OI)(CI)F > nul icacls G:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18 /grant:r SYSTEM:(OI)(CI)F > nul icacls G:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18\* /inheritance:e /T > nul icacls G:\ProgramData\Microsoft\Windows\SystemData\S-1-5-18 /setowner Administrators /T > nul RD /s /q "$SysReset" RD /s /q "G:\$$PendingFiles" RD /s /q "G:\boot" RD /s /q "G:\EFI" RD /s /q "G:\Documents and Settings" RD /s /q "G:\PerfLogs" RD /s /q "G:\Program Files" RD /s /q "G:\Program Files (x86)" RD /s /q "G:\ProgramData" RD /s /q "G:\RecoveryLogs" RD /s /q "G:\SymCache" RD /s /q "G:\sources" RD /s /q "G:\Recovery" RD /s /q "G:\Users" RD /s /q "G:\VirtualStore" takeown /f "G:\Windows" /r /d y /a > nul icacls "G:\Windows" /grant:r Administrators:(OI)(CI)F /t /q /c /inheritance:e > nul icacls "G:\bootmgr" /grant:r Administrators:(OI)(CI)F /q /c /inheritance:e > nul RD "G:\Windows" /s /q del /f /q "G:\bootmgr" del /f /q "G:\BOOTNXT" del /f /q "G:\config.sys" del /f /q "G:\hiberfil.sys" del /f /q "G:\pagefile.sys" del /f /q "G:\swapfile.sys"