Hey, Ok just installed a new SSD and now have my old hard drive as a backup. Does anyone know a good way to force remove old Windows files? Its the old Windows folder I'm trying to remove and it keeps saying I need permissions from TrustedInstaller, and won't let me delete it. Its not in use any more so I don't see why it should be locked still. I've tried by passing the recycle bin, safe mode and DOS but can't shift it. Any ideas?
you need to take ownership, then you can delete. right click go to properties, security, advanced, it will show current owner=trusted installer, edit, select your username, tick replace owner on subcontainers and hit apply and ok. you may also need to change permissions, also on the security tab, hit edit and give your user full control. if that sounds like too much work you can copy/paste this into notepad and save it as a .reg >>> Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\*\shell\runas] [HKEY_CLASSES_ROOT\*\shell\runas] @="Take Ownership" "Icon"="C:\\Windows\\System32\\imageres.dll,-78" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\*\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" [-HKEY_CLASSES_ROOT\Directory\shell\runas] [HKEY_CLASSES_ROOT\Directory\shell\runas] @="Take Ownership" "Icon"="C:\\Windows\\System32\\imageres.dll,-78" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t" [-HKEY_CLASSES_ROOT\dllfile\shell] [HKEY_CLASSES_ROOT\dllfile\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\dllfile\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" <<<<< gives a right click "take ownership" option on context menu which just automates the steps i outlines above.