Page 12 of 26 FirstFirst ... 2101112131422 ... LastLast

  1. Joined : Oct 2013
    Posts : 17,527
    64-bit Windows 10 Pro build 15014
       2015-12-11 #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 System SpecsSystem Spec


  2. Joined : Sep 2014
    Sydney NSW Australia
    Posts : 275
    Windows 10 Pro 64bit 1607 (14393.222)
       2015-12-25 #111

    Thanks Brink.
      My System SpecsSystem Spec


  3. Joined : Oct 2013
    Posts : 17,527
    64-bit Windows 10 Pro build 15014
       2015-12-25 #112

    I'm glad it could help Pendaws.
      My System SpecsSystem Spec


  4. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,964
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       2015-12-31 #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:	28 
Size:	27.3 KB 
ID:	56255

    Click image for larger version. 

Name:	Image 003.png 
Views:	26 
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: 473
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 System SpecsSystem Spec


  5. Joined : Oct 2013
    Posts : 17,527
    64-bit Windows 10 Pro build 15014
       2015-12-31 #114

    Thank you Cliff. I'll ask Edwin now.
      My System SpecsSystem Spec

  6.    2016-01-11 #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; 2016-01-11 at 21:09.
      My System SpecsSystem Spec


  7. Joined : Oct 2013
    Posts : 17,527
    64-bit Windows 10 Pro build 15014
       2016-01-11 #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 System SpecsSystem Spec

  8.    2016-01-11 #117

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


  9. Joined : Oct 2013
    Posts : 17,527
    64-bit Windows 10 Pro build 15014
       2016-01-11 #118

    No problem mate. Thank you for making the suggestion anyway though.
      My System SpecsSystem Spec


  10. Joined : Jan 2016
    Posts : 1
    Windows All
       2016-01-16 #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 System SpecsSystem Spec


 
Page 12 of 26 FirstFirst ... 2101112131422 ... LastLast


Similar Threads
Tutorial Category
Restore Point Context Menu - Add in Windows 10
How to Add a 'Create Restore Point' Context Menu in Windows 10 System Restore uses a feature called system protection that regularly creates and saves information about your PC's drivers, programs, registry, system files, and settings as restore...
Tutorials
New context menu - Add or Remove in Windows 10
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,...
Tutorials
Batch File - Add to New Context Menu in Windows 10
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...
Tutorials
VBScript File - Add to New Context Menu in Windows 10
How to Add VBScript Script File to New Context Menu in Windows 10 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...
Tutorials
BAT files - Add Open with Context Menu in Windows 10
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...
Tutorials
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 12:11.
Find Us
Twitter Facebook Google+



Windows 10 Forums