TrustedInstaller - Restore as Owner Context Menu Shortcut


  1. Posts : 60
    Windows 7 Ultimate 64bit
       #1

    TrustedInstaller - Restore as Owner Context Menu Shortcut


    Hello 7,

    I have been using the "Take Ownership" context menu shortcut for quite a while now and I absolutely love it. It saves immense amounts of time when editing system files. My question is:

    Would it be possible to create a context menu item that does the following:

    - Set file permissions to:
    TrustedInstaller - Restore as Owner Context Menu Shortcut-untitled.png

    - Sets ownership to TrustedInstaller

    Any help would be very appreciated!

    Thanks,
    Tim

    UPDATE:
    A batch file that does the same thing would be perfect also. I have successfully created my own context menu items that point to batch files saved elsewhere on my system. THANKS!
    Last edited by SmithUnwesson; 03 Nov 2011 at 04:35.
      My Computer


  2. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #2

    Something like this should do.
    Code:
    icacls "%1" /setowner "NT Service\TrustedInstaller" /T /C
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:50.
Find Us