Add Take Ownership to Context Menu in Windows 10  

Page 12 of 45 FirstFirst ... 2101112131422 ... LastLast
  1. Brink's Avatar
    Posts : 33,746
    64-bit Windows 10 Pro build 18282
    Thread Starter
       11 Dec 2015 #110

    nigelmercier said: View Post
    Hi Shawn,

    I have some programs that wanted to install in my Public folders, presumably because of permission issues in Program Files ...

    Being very anal about such things, I installed them in Program Files x86, but I do sometimes get errors unless i run them as Administrator. Would taking ownership fix this?
    Hello Nigel,

    It could, but I would not recommend doing so if all you have to do is "Run as administrator" to give the installer elevated rights.

    Usually, the program should trigger a UAC prompt to request elevated rights if it needs to "Run as administrator" to perform it's actions. This would be the fault of the program developer if it doesn't.
      My ComputersSystem Spec

  2. Pendaws's Avatar
    Posts : 313
    Windows 10 Pro 64bit 1809 (17763.55)
       25 Dec 2015 #111

    Thanks Brink. :)
      My ComputerSystem Spec

  3. Brink's Avatar
    Posts : 33,746
    64-bit Windows 10 Pro build 18282
    Thread Starter
       25 Dec 2015 #112

    I'm glad it could help Pendaws. :)
      My ComputersSystem Spec

  4. Cliff S's Avatar
    Posts : 21,960
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       31 Dec 2015 #113

    Shawn, I was using 7Zip to look through a .rar file without extracting and viewing some theming .dll's(among other things), and I just found out that your Take Ownership .reg is being used and packaged with other Theme tools.

    Click image for larger version. 

Name:	Image 004.png 
Views:	166 
Size:	27.3 KB 
ID:	56255

    Click image for larger version. 

Name:	Image 003.png 
Views:	153 
Size:	31.1 KB 
ID:	56256

    If you want to know which(if you care) you need to ask Edwin where it was downloaded, but when I opened the dll it was original. It's the latest pack that's supposedly compatible with build 10586.36(I didn't load it because it's only for this build, as I tried it in 11082 and it didn't work, and for a single build it's too much a PITA when it'll soon be outdated).
    Name:  Image 002.png
Views: 724
Size:  16.1 KB

    It must be interesting to see something you have written and how important and useful it is for others, huh?
    I know from using WMP skins how Take Ownership is needed(and everytime SFC is written the libraries must be redone and set to .old or .bac and the theme ones recopied in).
      My ComputersSystem Spec

  5. Brink's Avatar
    Posts : 33,746
    64-bit Windows 10 Pro build 18282
    Thread Starter
       31 Dec 2015 #114

    Thank you Cliff. I'll ask Edwin now. :)
      My ComputersSystem Spec

  6.    11 Jan 2016 #115

    I found another error in the take ownership reg file that prevented the context menu from appearing on exe files.

    Error:

    [-HKEY_CLASSES_ROOT\exefile\shell\runas]

    [HKEY_CLASSES_ROOT\exefile\shell\runas]
    "HasLUAShield"=""

    [HKEY_CLASSES_ROOT\exefile\shell\runas\command]
    @=""%1" %*"
    "IsolatedCommand"=""%1" %*"

    Correction:

    [-HKEY_CLASSES_ROOT\exefile\shell\runas]

    [HKEY_CLASSES_ROOT\exefile\shell\runas]
    @="Take Ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    "Position"="middle"

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

    NOTE: Do not use - causes undesired side effects. See below.
    Last edited by Intrepid1; 11 Jan 2016 at 21:09.
      My ComputerSystem Spec

  7. Brink's Avatar
    Posts : 33,746
    64-bit Windows 10 Pro build 18282
    Thread Starter
       11 Jan 2016 #116

    Hello Intrepid1,

    I'm afraid that it was done by design so "Take Ownership" wouldn't replace "Run as administrator" for .exe files.

    "Run as administrator" would be used more, so I thought it best to leave it instead.
      My ComputersSystem Spec

  8.    11 Jan 2016 #117

    Yes, just discovered the side effect and was about to post! It also screws up some other commands. Thanks!
      My ComputerSystem Spec

  9. Brink's Avatar
    Posts : 33,746
    64-bit Windows 10 Pro build 18282
    Thread Starter
       11 Jan 2016 #118

    No problem mate. Thank you for making the suggestion anyway though. :)
      My ComputersSystem Spec

  10.    16 Jan 2016 #119

    Hi Brink,

    Thanks for this tip.

    I have a suggestion instead of using Administrators group that changes depending on the OS language why don't you use the well know SID?

    • SID: S-1-5-32-544
      Name: Administrators
      Description: A built-in group. After the initial installation of the operating system, the only member of the group is the Administrator account. When a computer joins a domain, the Domain Admins group is added to the Administrators group. When a server becomes a domain controller, the Enterprise Admins group also is added to the Administrators group.
    Source: https://support.microsoft.com/en-us/kb/243330

    I didn't test but based on the icacls help it supports the use of sid's
      My ComputerSystem Spec


 
Page 12 of 45 FirstFirst ... 2101112131422 ... LastLast

Tutorial Categories

Add Take Ownership to Context Menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
How to Add or Remove the New context menu in Windows 10 The New context menu allows users to quickly create new files, folders, or shortcuts in the current location. You can right click or press and hold on your desktop or in any folder window,...
How to Add Windows Batch File to New Context Menu in Windows 10 A .bat file is a batch file that consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. The New context menu allows users...
System protection (if turned on) is a feature that allows you to perform a system restore that takes your PC back to an earlier point in time, called a system restore point. This can be handy if your PC isn't working well and you recently installed...
A .vbs file is a VBScript (Visual Basic Script) file written in the VBScript scripting language that can be executed within Windows or Internet Explorer via the Windows-based script host (Wscript.exe), and may also use the .vb file extension. The...
How to Add or Remove Open with Context Menu to BAT files in Windows 10 A .bat file is a batch file that consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. The Open with context menu...

Tags for this Thread

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

Designer Media Ltd
All times are GMT -5. The time now is 18:10.
Find Us