NSudo | Series of System Administration Tools | General Thread

Discussion in 'MDL Projects and Applications' started by Mouri_Naruto, Feb 6, 2015.

?

These things you maybe see in the future version of NSudo. What do you think about?

Poll closed Sep 13, 2019.
  1. Publish to Chocolatey? (Suggested by wwtex.)

    8 vote(s)
    66.7%
  2. Publish to scoop? (Suggested by wwtex.)

    1 vote(s)
    8.3%
  3. Publish to Windows Store? (Desktop Bridge.)

    3 vote(s)
    25.0%
  4. Add NSudo Configuration Editor?

    9 vote(s)
    75.0%
  5. Using Qt to implement the UI? (It may increase the binary size of NSudo.)

    3 vote(s)
    25.0%
  6. Compile NSudo with CMake?

    3 vote(s)
    25.0%
  7. Yes

    0 vote(s)
    0.0%
  8. No

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. Asios

    Asios MDL Novice

    Jul 15, 2018
    3
    0
    0
    Getting Error failed to create process when trying to run trusted installer?
    Run with system works fine
    been using this for several week now, just started today.

    win 10 pro 1803
     
  2. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    Sorry, it is no problem on my Windows 10 Pro 1803 (17134.165).
     
  3. Asios

    Asios MDL Novice

    Jul 15, 2018
    3
    0
    0
    Any suggestions on how to fix it? Thanks.
     
  4. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    I hope I made sense. For example, CCleaner Scheduled Tasks:
    1. Launch NSudo.exe as Admin, use TI permission, All Privs, select CCleaner64.exe
    2. Right-click (content menu) on CCleaner64.exe, select NSudo TI permission + All Privs

    What you see in Scheduled Tasks with #1 is not the same as what you see with #2, but they should be identical...
     
  5. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    Can you try to start TrustedInstaller service manually?
     
  6. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    OK, I will test it on my PC. (I will use the latest version of CCleaner to try.)
     
  7. Asios

    Asios MDL Novice

    Jul 15, 2018
    3
    0
    0
    Thanks! So stupid, DWS disabled it, should of clicked UAC off, to NOT be changed.

    Couldnt start it through services, had to cmd prompt it enabled and then start through services. I feel dumb for not checking that and thinking it was the program. Sorry =/

    Thanks again though.
     
  8. mOBSCENE

    mOBSCENE MDL Junior Member

    Feb 9, 2010
    68
    39
    0
    Does anyone know which Windows services are required to be enabled for using NSudo? I've disabled a bunch of them (150+) and getting error "Failed to create a process." when clicking on Run. It used to work before disabling services, but testing them all one by one is gonna to take a lot of time.

    I suspected the service Secondary Logon needed to be enabled, but this does not seem to help.
     
  9. lewcass

    lewcass MDL Senior Member

    Mar 10, 2018
    429
    251
    10
    #249 lewcass, Jul 22, 2018
    Last edited: Jul 22, 2018
    Try NSI, Network Store Interface, disabling it stops some things running as Administrator, Export System Packages by Knarz.

    Testing services by disabling 1 at a time is the only way you will find what services affect things.

    You cannot wholesale disable things then pray your system works.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    If you need to get TrustedInstaller token, you should not disabled the TrustedInstaller service.
    NSudo uses CreateProcessAsUser to create process, and it needs Secondary Logon service.
     
  11. mOBSCENE

    mOBSCENE MDL Junior Member

    Feb 9, 2010
    68
    39
    0
    #251 mOBSCENE, Jul 22, 2018
    Last edited: Jul 22, 2018
    Thanks for the quick replies, guys. All three services are already enabled (default state); nsi/Network Store Interface Service, Windows Modules Installer/TrustedInstaller, Secondary Logon. So it must be another service. No errors in the event logs as well.

    I like to run a very basic system, and do not seem to miss out on anything - well, except NSudo of course ;) I'll give it a shot to try to find the missing service.

    EDIT: Just figured out NSudo works when I run the process locally instead of via a Samba share. It used to work from the Samba share as well, though. But this should help me in the right direction to find the service.
     
  12. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    How to try the latest beta?
     
  13. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    Today, I am proud to announce the NSudo 6.1 Preview 1.

    It add some new command line options, you can use them with the command line help.
    **NSudo 6.1.1808.16**
    • Merge NSudoC and NSudoG projects to NSudo project.
    • Update copyright of license.
    • Add VC-LTL 4.0 or later support for NSudo release configuration for ARM and ARM64 and drop the earlier version of VC-LTL support. (Huge thanks to mingkuang.)
    • Refactoring the command line parser.
    • Add "Wait" option in the command line usage. (Suggested by testtest322, wzzw and Domagoj Smolčić)
    • Add "Help" and "Version" option in the command line usage.
    In the next preview, I will still add some new command line options.

    Mouri_Naruto

     

    Attached Files:

  14. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    Try add the /hide window option. Thank.
     
  15. Magissia

    Magissia MDL Novice

    Dec 25, 2012
    21
    4
    0
    Name is somewhat confusing, had hope it would work like linux sudo, allowing me to give admin permissions for specific commands to specific users but still, great tool
     
  16. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    Try, thank.
     
  17. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    I am sorry because I was busy in the recent days.
    But I can continue to improve NSudo in these days.

    I think I will add options about window (minimize, maximize, hide and etc) and priority (real-time, high, medium and low) settings to the next preview of NSudo.

    Mouri
     
  18. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    There are lots of things for NSudo to improve.

    For example,
    using the singleton design mode to manage the global variables,
    using the ATL, even the WTL to implement the UI,
    merging the source code files,
    and etc.

    Mouri
     
  19. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    /hide could be very usefull in setupcomplete.cmd for hiding the window of console.