LeX Posted May 6, 2011 Report post Posted May 6, 2011 hi all, i have an interesting problem, may be here someone can help me need to Restore TrustedInstaller as Owner of a File using command line (folders in c:\Windows\winsxs) there're a toons of sites how to do it manually in windows (like here), but can't find how to do it in cmd (cause this should be in a script) commands like takeown /s localhost /u "NT Service/TrustedInstaller" /f "%windir%\winsxs\Catalogs" asks for trustedinstaller password, which generates randomly thanks in advance Quote Share this post Link to post Share on other sites More sharing options...
LeX Posted May 9, 2011 Report post Posted May 9, 2011 hi all, i have an interesting problem, may be here someone can help me need to Restore TrustedInstaller as Owner of a File using command line (folders in c:\Windows\winsxs) there're a toons of sites how to do it manually in windows (like here), but can't find how to do it in cmd (cause this should be in a script) commands like takeown /s localhost /u "NT Service/TrustedInstaller" /f "%windir%\winsxs\Catalogs" asks for trustedinstaller password, which generates randomly thanks in advance up Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted May 9, 2011 Report post Posted May 9, 2011 Did you try setacl? Quote Share this post Link to post Share on other sites More sharing options...
LeX Posted May 9, 2011 Report post Posted May 9, 2011 thanks for your answer, but in my case i can't use 3rd party tools, like this one. Quote Share this post Link to post Share on other sites More sharing options...
LeX Posted May 10, 2011 Report post Posted May 10, 2011 question is solved, this can be done with icacls "%windir%\winsxs\Catalogs" /setowner "NT Service\TrustedInstaller" /T /C Quote Share this post Link to post Share on other sites More sharing options...
leviboy98 Posted October 11, 2014 Report post Posted October 11, 2014 hi all, i have an interesting problem, may be here someone can help me need to Restore TrustedInstaller as Owner of a File using command line (folders in c:\Windows\winsxs) there're a toons of sites how to do it manually in windows (like here), but can't find how to do it in cmd (cause this should be in a script) commands like takeown /s localhost /u "NT Service/TrustedInstaller" /f "%windir%\winsxs\Catalogs" asks for trustedinstaller password, which generates randomly thanks in advance How to get the password? Or is there any way to change/disable it? Quote Share this post Link to post Share on other sites More sharing options...