Give back full control to a user on a disk from another computer

Posted by Foghorn on Stack Overflow See other posts from Stack Overflow or by Foghorn
Published on 2010-04-17T16:37:55Z Indexed on 2010/04/17 16:43 UTC
Read the original article Hit count: 445

I have my friend's hard drive mounted externally. After messing with the permissions with TAKEOWN so I could fix some viruses, I have full control over their drive. The problem is, now it's stuck in a "autochk not found" reboot sequence. I think the problem is that the boot sector is invisible to the drive now.

So my question is, How can I use icacls to give back the full ownership, when the user I am giving it to is not on my machine?

I ran the TAKEOWN command from my windows 7 laptop, their machine is a windows xp Professional with three partitions, I only altered the one that has the boot sector.

Here is the permissions that icacls shows: (Where my computer is %System% my username is ME, and the drive is E:\

C:\Users\ME> icacls E:\*

E:\$RECYCLE.BIN %System%\ME:(OI)(CI)(F) Mandatory Label\Low Mandatory Level:(OI)(CI)(IO)(NW)

E:\ALLDATAW %System%\ME:(I)(OI)(CI)(F)

E:\alrt_200.data %System%\ME:(OI)(CI)(F)

E:\AUTOEXEC.BAT %System%\ME:(OI)(CI)(F)

E:\AZ Commercial %System%\ME:(I)(OI)(CI)(F)

E:\boot.ini %System%\ME:(OI)(CI)(F)

E:\Config.Msi %System%\ME:(I)(OI)(CI)(F)

E:\CONFIG.SYS %System%\ME:(OI)(CI)(F)

E:\Documents and Settings %System%\ME:(I)(OI)(CI)(F)

E:\IO.SYS %System%\ME:(OI)(CI)(F)

E:\Mitchell1 %System%\ME:(I)(OI)(CI)(F)

E:\MSDOS.SYS %System%\ME:(OI)(CI)(F)

E:\MSOCache %System%\ME:(I)(OI)(CI)(F)

E:\NTDClient.log %System%\ME:(OI)(CI)(F)

E:\NTDETECT.COM %System%\ME:(OI)(CI)(F)

E:\ntldr %System%\ME:(OI)(CI)(F)

E:\pagefile.sys %System%\ME:(OI)(CI)(F)

E:\Program Files %System%\ME:(I)(OI)(CI)(F)

E:\RECYCLER %System%\ME:(I)(OI)(CI)(F)

E:\RHDSetup.log %System%\ME:(OI)(CI)(F)

E:\System Volume Information %System%\ME:(I)(OI)(CI)(F)

E:\WINDOWS %System%\ME:(I)(OI)(CI)(F)

Successfully processed 22 files; Failed processing 0 files

C:\Users\ME>

© Stack Overflow or respective owner

Give back full control to a user on a disk from another computer

Posted by Foghorn on Super User See other posts from Super User or by Foghorn
Published on 2010-04-17T16:37:55Z Indexed on 2010/04/17 18:43 UTC
Read the original article Hit count: 445

I have my friend's hard drive mounted externally. After messing with the permissions with TAKEOWN so I could fix some viruses, I have full control over their drive. The problem is, now it's stuck in a "autochk not found" reboot sequence. I think the problem is that the boot sector is invisible to the drive now.

So my question is, How can I use icacls to give back the full ownership, when the user I am giving it to is not on my machine?

I ran the TAKEOWN command from my windows 7 laptop, their machine is a windows xp Professional with three partitions, I only altered the one that has the boot sector.

Here is the permissions that icacls shows: (Where my computer is %System% my username is ME, and the drive is E:\

C:\Users\ME> icacls E:\*

E:\$RECYCLE.BIN %System%\ME:(OI)(CI)(F) Mandatory Label\Low Mandatory Level:(OI)(CI)(IO)(NW)

E:\ALLDATAW %System%\ME:(I)(OI)(CI)(F)

E:\alrt_200.data %System%\ME:(OI)(CI)(F)

E:\AUTOEXEC.BAT %System%\ME:(OI)(CI)(F)

E:\AZ Commercial %System%\ME:(I)(OI)(CI)(F)

E:\boot.ini %System%\ME:(OI)(CI)(F)

E:\Config.Msi %System%\ME:(I)(OI)(CI)(F)

E:\CONFIG.SYS %System%\ME:(OI)(CI)(F)

E:\Documents and Settings %System%\ME:(I)(OI)(CI)(F)

E:\IO.SYS %System%\ME:(OI)(CI)(F)

E:\Mitchell1 %System%\ME:(I)(OI)(CI)(F)

E:\MSDOS.SYS %System%\ME:(OI)(CI)(F)

E:\MSOCache %System%\ME:(I)(OI)(CI)(F)

E:\NTDClient.log %System%\ME:(OI)(CI)(F)

E:\NTDETECT.COM %System%\ME:(OI)(CI)(F)

E:\ntldr %System%\ME:(OI)(CI)(F)

E:\pagefile.sys %System%\ME:(OI)(CI)(F)

E:\Program Files %System%\ME:(I)(OI)(CI)(F)

E:\RECYCLER %System%\ME:(I)(OI)(CI)(F)

E:\RHDSetup.log %System%\ME:(OI)(CI)(F)

E:\System Volume Information %System%\ME:(I)(OI)(CI)(F)

E:\WINDOWS %System%\ME:(I)(OI)(CI)(F)

Successfully processed 22 files; Failed processing 0 files

C:\Users\ME>

© Super User or respective owner

Related posts about windows-xp-professional

Related posts about windows-xp