Windows 7 Forums


Windows 7: TrustedInstaller - Restore as Owner Context Menu Shortcut

29 Oct 2011   #1

Windows 7 Ultimate 64bit
Down South
 
 
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 AM..
My System SpecsSystem Spec

06 Nov 2011   #2

Windows 8; Windows 7 x86 (Dec2008-Jan2013)
 
 

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

 TrustedInstaller - Restore as Owner Context Menu Shortcut problems?



Thread Tools



Similar help and support threads for: TrustedInstaller - Restore as Owner Context Menu Shortcut
Thread Forum
New Context Menu - Remove & Restore Default Menu Items Tutorials
Solved Context Menu (Shortcut) Bug General Discussion
Keyboard shortcut for Context Menu->New Shortcut General Discussion
Changing owner back to TrustedInstaller General Discussion
Solved Context menu shortcut add ons. Customization


All times are GMT -5. The time now is 07:56 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32