Subscribe to How-To Geek

Welcome to the How-To Geek Forums

We encourage you to register on our forums and post any questions you might have. The How-To Geeks monitor this forum and will respond to your question quickly.

How-To Geek Forums » Windows XP

XP takeown and cacls

(5 posts)
  • Started 1 year ago by billg47
  • Latest reply from midnightrambler
  • Topic Viewed 1846 times

billg47
Posts: 10

i couldn't seem to find an article about the takeown and cacls programs for xp. does anyone know how this woks for XP?

Posted 1 year ago #
Top
 
midnightrambler
Posts: 3

download subinacl.exe here:
http://www.microsoft.com/downl.....laylang=en

You must be administrator.

Copy this code to a text file and change extension to .cmd
Place subinacle.exe in the same directory as the .cmd file you made and run it
code:

COPY subinacl.exe %systemdrive%\WINDOWS\system32

echo y| reg add "HKEY_CLASSES_ROOT\*\shell\runas" /ve /d "Take Ownership"
echo y| reg add "HKEY_CLASSES_ROOT\*\shell\runas\command" /ve /d "CMD /C subinacl.EXE /file ""%%

1\"" /owner=%username% && subinacl.EXE /file ""%%1\"" /grant=%username%=f"

echo y| reg add "HKEY_CLASSES_ROOT\Directory\shell\runas" /ve /d "Take Ownership"
echo y| reg add "HKEY_CLASSES_ROOT\Directory\shell\runas\command" /ve /d "CMD /C subinacl.EXE

/file ""%%1\"" /owner=%username% && subinacl.EXE /subdirectories ""%%1\*.*\"" /owner=%username%

&& subinacl.EXE /file ""%%1\"" /grant=%username%=f && subinacl.EXE /subdirectories ""%%1\*.*\""

/grant=%username%=f"

echo y| reg add "HKEY_CLASSES_ROOT\Folder\shell\runas" /ve /d "Take Ownership"
echo y| reg add "HKEY_CLASSES_ROOT\Folder\shell\runas\command" /ve /d "CMD /C subinacl.EXE /file

""%%1\"" /owner=%username% && subinacl.EXE /subdirectories ""%%1\*.*\"" /owner=%username% &&

subinacl.EXE /file ""%%1\"" /grant=%username%=f && subinacl.EXE /subdirectories ""%%1\*.*\""

/grant=%username%=f"

echo y| reg add "HKEY_CLASSES_ROOT\exefile\shell\runas" /ve /d "Take Ownership"
echo y| reg add "HKEY_CLASSES_ROOT\exefile\shell\runas\command" /ve /d "CMD /C subinacl.EXE /file

""%%1\"" /owner=%username% && subinacl.EXE /file ""%%1\"" /grant=%username%=f"

echo y| reg add "HKEY_CLASSES_ROOT\cmdfile\shell\runas" /ve /d "Take Ownership"
echo y| reg add "HKEY_CLASSES_ROOT\cmdfile\shell\runas\command" /ve /d "CMD /C subinacl.EXE /file

""%%1\"" /owner=%username% && subinacl.EXE /file ""%%1\"" /grant=%username%=f"

echo y| REG DELETE "HKEY_CLASSES_ROOT\exefile\shell\runas\command" /V "IsolatedCommand"

Posted 4 months ago #
Top
 
midnightrambler
Posts: 3

Note: do not install subinacl to programs directory but extract it and copy to system32 with the .cmd or manually.
A way to do it is to install subinacl and copy from program files to system32 and then delete it from program files.

Posted 4 months ago #
Top
 
raphoenix
raphoenix
Posts: 5223

@midnightrambler,
---
Welcome to HTG.
---
Very Helpful Posting !!!!
---
Best Regards,
Rick P.

Posted 4 months ago #
Top
 
midnightrambler
Posts: 3

I made a one click installer if any one is interested but I'm not sure where to host it.

Posted 4 months ago #
Top
 

RSS feed for this topic

Reply

You must log in to post.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.