How to Run Explorer with Trusted Installer Privileges ?

Discussion in 'Scripting' started by ceo54, Nov 14, 2019.

  1. ceo54

    ceo54 MDL Senior Member

    Joined:
    Aug 13, 2015
    Messages:
    471
    Likes Received:
    105
    Trophy Points:
    10
    Hi,

    To be able to quickly mess up with system files (rename, delete etc) How can I run explorer with Trusted Installer Privileges ?

    I tried NSudu and Powerun but that doesn't seem to work, any other ideas ?

    Thank you.
     
  2. Tiger-1

    Tiger-1 MDL Guru

    Joined:
    Oct 18, 2014
    Messages:
    6,209
    Likes Received:
    7,533
    Trophy Points:
    210
    hmm just out of curiosity, what is your intention? :rolleyes:
     
  3. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,567
    Likes Received:
    59,638
    Trophy Points:
    450
    Messing up his system very quickly;)
     
  4. Tiger-1

    Tiger-1 MDL Guru

    Joined:
    Oct 18, 2014
    Messages:
    6,209
    Likes Received:
    7,533
    Trophy Points:
    210
    i'm sure that's what he's looking for...;)
     
  5. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,567
    Likes Received:
    59,638
    Trophy Points:
    450
    :D:D
     
  6. Tiger-1

    Tiger-1 MDL Guru

    Joined:
    Oct 18, 2014
    Messages:
    6,209
    Likes Received:
    7,533
    Trophy Points:
    210
  7. ceo54

    ceo54 MDL Senior Member

    Joined:
    Aug 13, 2015
    Messages:
    471
    Likes Received:
    105
    Trophy Points:
    10
    It's for customization, Explorerframe, shell32, shellstyle, imageres and 1000 other such files that need need fully replaced or partially patched with resources. It's a pain in ass to do it one by one taking ownership.
     
  8. Tiger-1

    Tiger-1 MDL Guru

    Joined:
    Oct 18, 2014
    Messages:
    6,209
    Likes Received:
    7,533
    Trophy Points:
    210
    #8 Tiger-1, Nov 14, 2019
    Last edited: Nov 14, 2019
    NO dude NO you are moving in the wrong place is not the correct way and is also difficult to explain involves C: \ Windows \ System32 and also within the registry do not try to continue because you will totally damage your system; change your tactic search via google something as modifying icons etc on Windows 10 since all versions of Windows 10 operate in a very different way than Windows 7 for example ...
    look here: https://www.askvg.com/guide-how-to-change-default-folder-icons-in-windows/
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,069
    Likes Received:
    55,429
    Trophy Points:
    340
  10. Tiger-1

    Tiger-1 MDL Guru

    Joined:
    Oct 18, 2014
    Messages:
    6,209
    Likes Received:
    7,533
    Trophy Points:
    210
    hy bro do you know Blacknotepad is still better than Notepad3 in my humble opinion, this program It was written in C#
     
  11. LiteOS

    LiteOS MDL Expert

    Joined:
    Mar 7, 2014
    Messages:
    1,893
    Likes Received:
    814
    Trophy Points:
    60
    Use winxshell
     
  12. ceo54

    ceo54 MDL Senior Member

    Joined:
    Aug 13, 2015
    Messages:
    471
    Likes Received:
    105
    Trophy Points:
    10

    Thank you for the reference and script addodi but it didn't work for me. Whenever I clicked any links, explorer launched a new window in a separate process under my username. I've reported this in the thread. Also tried minipath, it does the same thing as explorer launched with NSudo, gives error. If you have any other ideas, I want to try out. In any case, thanks for the help :)
     
  13. ceo54

    ceo54 MDL Senior Member

    Joined:
    Aug 13, 2015
    Messages:
    471
    Likes Received:
    105
    Trophy Points:
    10
    Thank you for the input but it didn't work. It will only work under WinPE that's not what I'm looking for, thanks anyways.
     
  14. LiteOS

    LiteOS MDL Expert

    Joined:
    Mar 7, 2014
    Messages:
    1,893
    Likes Received:
    814
    Trophy Points:
    60
    i use it so its works on normal too
     
  15. ceo54

    ceo54 MDL Senior Member

    Joined:
    Aug 13, 2015
    Messages:
    471
    Likes Received:
    105
    Trophy Points:
    10
    It does but not as Trusted Installer. I couldn't rename the system files in my test run.
     
  16. ceo54

    ceo54 MDL Senior Member

    Joined:
    Aug 13, 2015
    Messages:
    471
    Likes Received:
    105
    Trophy Points:
    10
    I use resource hacker to inject the code and/or replace the resource/icons in the system files and then replace the original files with my modified ones. Been doing this ever since I started using Computers in 2012. But I think you've brought up a very important issue regarding permissions that I neglected up until now. To be truthful, apart from using the permissions GUI panel, I have no knowledge of icalcs or calcs or takedown etc but inclined to learn. This is going to pay off big time. but I need help. I think I should ask the willing members of the community.

    Edit: Okay the thread is up https://forums.mydigitallife.net/threads/how-to-copy-and-restore-permissions.80596/
     
  17. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,567
    Likes Received:
    59,638
    Trophy Points:
    450
    Why starting a new thread for just a follow up question, which probably is answered in the posts/links from answers in this thread?
     
  18. Thomas Dubreuil

    Thomas Dubreuil MDL Senior Member

    Joined:
    Aug 29, 2017
    Messages:
    357
    Likes Received:
    594
    Trophy Points:
    10
    You can rename system files but won't be able to rename them if they are "in use" by the system anyway, you'd have to do it offline.
    I wouldn't mess modifying system files hash, is inviting troubles imho

    This doesn't really need a new thread...icacls backup/restore is simple and well documented
    Code:
    icacls c:\your\path  /save  "perms.txt" /t /c
    icacls c:\ /restore "perms.txt" /t /c
    
     
  19. ceo54

    ceo54 MDL Senior Member

    Joined:
    Aug 13, 2015
    Messages:
    471
    Likes Received:
    105
    Trophy Points:
    10
    This is a wider subject in my opinion, not just limited to customisation and one which I could really use. Hence a new thread.
     
  20. ceo54

    ceo54 MDL Senior Member

    Joined:
    Aug 13, 2015
    Messages:
    471
    Likes Received:
    105
    Trophy Points:
    10
    #20 ceo54, Nov 15, 2019
    Last edited: Nov 15, 2019
    (OP)
    First allow me extend my gratitude for helping me out here Thomas. Highly appreciated.

    I've read about icalcs and takeown on Interwebs. Takeown is pretty strightforward. icalcs will take some time but I will get there. First I need to full understand how to backup the permissions before going on a trial and error spree :D