Accessing files after mount
#1
Posted 08 November 2009 - 08:33 AM
i mounted my wim, and now i'd like to edit / delete some files using a .bat but they all seem to be protected. what can i do to get acces ?
thanks
#2
Posted 08 November 2009 - 08:37 AM
s7even, on Nov 8 2009, 08:33 AM, said:
Take Ownership Reg Info
After ownership is sorted, run your BAT and it should work.
EDIT: If you still cannot take ownership of a particular file, try taking ownership of it's folder.
This post has been edited by MrJinje: 08 November 2009 - 09:08 AM
#3
Posted 08 November 2009 - 10:05 AM
i installed the reg and i have the "take ownership" in my menu
when i use it on a file or directory a cmd windows opens and closes really fast but i still can't modify the files mounted. It says i need to get autorisation from trustedinstaller
i also would like to know if it is possible to use it automatically in my batch so everything is automated
This post has been edited by s7even: 08 November 2009 - 10:08 AM
#4
Posted 08 November 2009 - 10:29 AM
TrustedInstaller Ownerships/Permissions
There is a couple other links at the end of the post that may be interesting too. (for batch scripting these things)
This post has been edited by MrJinje: 08 November 2009 - 10:29 AM
#5
Posted 08 November 2009 - 12:55 PM
i tried to use the takeown command in my batch for a directory and i think it worked but now it says i need autorisation of "my user account"
do i have to use the icacls command too ? what does it do ? i tiried it but i get an error message, dunno how to translate it exactly : mapping between account and security ID is not done
sorry if i look stupid but i'm just learning
#6
Posted 09 November 2009 - 04:52 AM
Quote
Quote
Quote
Quote
icacls %WINDIR%\System32\sppcc.dll /grant administrators:F
icacls %WINDIR%\System32\sppcc.dll /grant %USERNAME%:RX
Third command shows how to use a batch variable / and how to set Read/Write (RX). Here are more examples + icacls syntax
#7
Posted 09 November 2009 - 05:07 AM
i was able to delete some registry key with just takeown of the system32\config directory
i think my mistake was to try to takeown of everything, brutal force FTL
do you think it's better to take right on just the files i will modify or the directory ?
#8
Posted 09 November 2009 - 05:15 AM
s7even, on Nov 9 2009, 05:07 AM, said:
i was able to delete some registry key with just takeown of the system32\config directory
i think my mistake was to try to takeown of everything, brutal force FTL
do you think it's better to take right on just the files i will modify or the directory ?
Smaller directories yes, larger directories no. Config directory is relatively small (number of files-wise), but it would take nearly half an hour to take ownership of the entire Windows directory. (depending on you HDD speed) The number of files in the directory is your acid-test. See what I'm saying.
This post has been edited by MrJinje: 09 November 2009 - 05:18 AM
#9
Posted 09 November 2009 - 06:09 AM



Help
Back to top









