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. slayer9450

    slayer9450 MDL Member

    Aug 3, 2015
    211
    87
    10
    What's the difference between the options that have (Enable All Privileges) and the ones that don't?
     
  2. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    You can try to run "whoami /all" by NSudo and read the result, and you will know the difference.
     
  3. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    Please expose some CreateProcess options.. like Priority, Window (Hide, max, min) etc.
    So that we can launch hidden process workers.
     
  4. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    I have received your suggestions. May next version will start to do that.
     
  5. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    Maybe add in NSudoC so it's less intrussive :)

    Soon available in beta?
     
  6. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    May be NSudo 6.0 R3
     
  7. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    Excellent!!!
     
  8. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    Is there a REG file that generates context menu?
     
  9. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    NSudo uses Windows Registry API to generate the context menu.
     
  10. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    I'm confused... How do we generate the context menu? Manually through registry? What are needed entries?
     
  11. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,262
    1,731
    120
    In elevated command window run
    Code:
    Nsudo -install
    Make sure you have correct path to Nsudo.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    THANK YOU!

    Wonderful!
     
  13. slayer9450

    slayer9450 MDL Member

    Aug 3, 2015
    211
    87
    10
    I captured and compared the registry changes the command line option made with RegShot. Here is a .reg file of the relevant changes. When I tested it on my LTSB 2016 x64 VM it worked fine.
     

    Attached Files:

  14. nechrist

    nechrist MDL Guide Pack

    Apr 24, 2010
    326
    163
    10
    I've tried nsudo version 6.0.1802.2 with the gui version and it always opens a cmd prompt instead of the process you want to elevate: for example if you choose "regedit", the program runs cmd prompt instead. Previous version 5.0.1707.31 works greate instead. Anyone else?

    UPDATE:

    Sorry, didn't see the v2 version. My fault.
     
  15. Hackeur

    Hackeur MDL Senior Member

    Jun 14, 2009
    330
    441
    10
    NSudo context menu on the Desktop, Drive and Directory right click :)

    Trusted Installer with all privileges, save as reg file

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\NSudo]
    "MUIVerb"="NSudo TI all privileges"
    "Icon"="C:\\Windows\\NSudo.exe"
    "Position"="Middle"
    
    [HKEY_CLASSES_ROOT\DesktopBackground\Shell\NSudo\command]
    @="NSudo -U:T -P:E cmd"
    
    [HKEY_CLASSES_ROOT\Directory\background\shell\NSudo]
    "MUIVerb"="NSudo TI all privileges"
    "Icon"="C:\\Windows\\NSudo.exe"
    "Position"="Middle"
    
    [HKEY_CLASSES_ROOT\Directory\background\shell\NSudo\command]
    @="NSudo -U:T -P:E cmd"
    
    [HKEY_CLASSES_ROOT\Directory\shell\NSudo]
    "MUIVerb"="NSudo TI all privileges"
    "Icon"="C:\\Windows\\NSudo.exe"
    "Position"="Middle"
    
    [HKEY_CLASSES_ROOT\Directory\shell\NSudo\command]
    @="NSudo -U:T -P:E cmd"
    
    
     
  16. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
  17. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    The new features draft of NSudo 6.1

    In the command line, NSudo 6.1 will provide these optional arguments:

    -CurrentDirectory:[CurrentDirectoryPath]
    Set the current directory for the process. (Suggested by testtest322.)

    -Priority:[Idle | BelowNormal | Normal | AboveNormal | High | RealTime]
    Set the priority for the process. (Suggested by testtest322.)

    -ShowWindowMode:[Show | Hide | Maximize | Minimize]
    Set the window mode for the process. (Suggested by testtest322.)

    -Wait
    Start application and wait for it to terminate. (Suggested by testtest322 and wzzw.) (Is it necessary to add the timeout setting?)

    In the ShortCut List feature, NSudo 6.1 will provide these optional settings:

    You can customize the NSudo.json path by setting the %NSUDO_JSON_PATH% environment variable. (According to the suggestion of the 秋刀鱼.)
    Provide more options in the NSudo.json like that (According to the suggestion of the 秋刀鱼.).
    Code:
    {
      "ShortCutList_V3": [
        {
          "Description": "Process Explorer",
          "Actions": [
            {
              "Applicable": {
                "CPUArch": "x86"
              },
              "Command": "E:\\Tools\\SysinternalsSuite\\procexp.exe"
            },
            {
              "Applicable": {
                "CPUArch": "AMD64"
              },
              "Command": "E:\\Tools\\SysinternalsSuite\\procexp64.exe"
            }
          ]
        }
      ]
    }
    I hope more and more people can share their suggestions.

    Mouri
     
  18. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    When is expected 6.1?
     
  19. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    I hope the first release of NSudo 6.1 can be published in May. I chose to publish it in May because I also want to try to implement a Win32 ShortCut List Editor for people don't want to edit NSudo.json directly. (Support GUI and CUI.)

    I hope you can forgive my wayward.

    Mouri
     
  20. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    Possible to fork it? How big is the project/