Author Topic: take ownership reg file (SHANE!)  (Read 4185 times)

0 Members and 1 Guest are viewing this topic.

Offline Julian

  • "Cat and Mum Guy"
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jun 2015
  • Posts: 1320
  • Location: USA, New Mexico
  • Karma: 38
    • View Profile
take ownership reg file (SHANE!)
« on: June 17, 2015, 12:51:43 AM »
@Shane

So I've looked at it and added LUAShield so users know its for administrative purposes. I guess this is a minor cosmetic add but uuuuuuuh I like it  :wink:

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\exefile\shell\runas2]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

http://www.tweaking.com/articles/pages/add_quottake_ownershipquot_to_right_click_menu_in_vista_amp_7,1.html
« Last Edit: December 22, 2015, 11:47:52 PM by Julian »
Julian

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: take ownership reg file
« Reply #1 on: June 25, 2015, 04:20:44 AM »
So it adds the shield icon?

I like that idea :-)

Remind me after this coming weekend to make the change, while I am back to answering forum posts I still have a ton of unpacking to do and so will be getting pack to programming next week. Also my 36th birthday is this saturday, I require vodka lol

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Julian

  • "Cat and Mum Guy"
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jun 2015
  • Posts: 1320
  • Location: USA, New Mexico
  • Karma: 38
    • View Profile
Re: take ownership reg file
« Reply #2 on: June 25, 2015, 12:13:24 PM »
So it adds the shield icon?

I like that idea :-)

Remind me after this coming weekend to make the change, while I am back to answering forum posts I still have a ton of unpacking to do and so will be getting pack to programming next week. Also my 36th birthday is this saturday, I require vodka lol

Shane

Go enjoy your birthday you are only 36 once in a life time  :artist:
Julian

Offline parkd1

  • Sr. Member
  • ****
  • Join Date: Jan 2013
  • Posts: 269
  • Karma: 7
    • View Profile
Re: take ownership reg file
« Reply #3 on: June 29, 2015, 11:02:35 AM »
Congrats. So I take it your a 4th baby. That is cool and now you can double party.  :smiley:

Offline Julian

  • "Cat and Mum Guy"
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jun 2015
  • Posts: 1320
  • Location: USA, New Mexico
  • Karma: 38
    • View Profile
Re: take ownership reg file
« Reply #4 on: December 22, 2015, 11:47:17 PM »
Julian

 

anything