The problem turned out to be that I was on a workgroup, not a
domain, and so the systems didn't have any common notion of
"Administrator". Although Explorer knows how to request elevated permissions,
this still isn't enough. You have to "Take Ownership" of the files in order to
delete them, and there's no way to do this from Explorer.
I found a solution in the winmatrix forum, but it only works for files, not directories. You can't set the Full Control permission on a directory, so you end up being locked out of directories if you try and use these commands:
takeown /f filepath
/r
icacls filepath /grant yourusername:f /t
Note that I've added /r and /t to the commands, which is required for the them to operate recursively.
Instead, I did the steps below. These steps assume that the new drive is on E:.
- Open a Command Prompt with Run As Administrator.
- Run this command:
takeown /f e:\ /r
- Right-Click on the root of the copied drive.
- Select Properties.
- Click the Security tab.
- Click the Edit button.
- Select Authenticated Users.
- Click the checkbox under Allow for Full Control.
- Run this command:
icacls e:\*.* /reset /t
This command will force all permissions to mirror the permissions on the root of the drive that you set in #6. You must have the *.* or the root directory will be reset, which you don't want.
___________________________________
Mehul Patel / www.FB.me/GujaratiKanudo