NSudo | A Powerful System Administration Tool

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 Nov 11, 2018.
  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%
Multiple votes are allowed.
  1. Thomas Dubreuil

    Thomas Dubreuil MDL Member

    Aug 29, 2017
    148
    232
    10
    Just now realized I can finally use space in paths inside Nsudo.json...Great!!
    DOS names with ~1 was a pain !

    However I think you didn't expand well all environment variables? for example comexp (component services), taskschd not working...it was used to work
    Here is my json example
    Code:
    {
       "ShortCutList_V2": {
           "Xyplorer":  "C:\\PROGRA~1\\SYSTEM~1\\SYSTEM~1\\Xyplorer\\XYplorer.exe",
           "Task Scheduler": "taskschd",
           "Registry Workshop": "C:\\PROGRA~1\\REGIST~1\\RegWorkshopX64.exe",
           "PowerShell": "powershell",
           "Hosts": "notepad C:\\Windows\\System32\\Drivers\\etc\\hosts",
           "Component Services": "comexp",
           "CMD": "cmd"
           }
    }
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. slayer9450

    slayer9450 MDL Member

    Aug 3, 2015
    181
    71
    10
    You should probably publish it on the GitHub page as well. It still says the latest version is 6.0 R3.
     
  3. Mouri_Naruto

    Mouri_Naruto MDL Senior Member

    Jul 10, 2014
    252
    861
    10
    You should try "mmc comexp.msc" in NSudo.
    Beginning with NSudo 6.1, I don't use the Command Prompt to implement the process creation.

    Mouri
     
  4. Thomas Dubreuil

    Thomas Dubreuil MDL Member

    Aug 29, 2017
    148
    232
    10
    works perfectly thank you for the hint !
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Ultra Male

    Ultra Male MDL Expert

    May 30, 2014
    1,183
    565
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Mouri_Naruto

    Mouri_Naruto MDL Senior Member

    Jul 10, 2014
    252
    861
    10
    User Experience of NSudo
    • DPI Support
      • System Aware: Windows Vista / 2008 / 7 / 2008 R2 / 8 / 2012 / 8.1 / 2012 R2
      • Per-Monitor DPI Aware v2: Windows 10 Version 1507 (With undocumented API) / 1511 (With undocumented API) / 1607 / 1703 / 1709 / 1803 / 1809
    • Accessibility (Narrator, High Contrast, Keyboard control)
      • Yes, because NSudo only uses Windows standard controls which accessibility well supported.
    • Console
      • You can use NSudo at least 80x25 console window.
    • Command Line
      • NSudo supports "--", "/" and "-" option prefix. (For example, you can use "-U:T" or "--U:T" or "/U:T")
      • NSudo supports ":" and "=" to assign values to options. (For example, you can use "-U:T" or "-U=T")
    I'm proud of that and I hope everyone will enjoy using NSudo.

    In the future, NSudo will introduce the Environment Configuration infrastructure and the brand new NSudo SDK. I hope more and more developers and geeks will be happy.

    Mouri
     
  7. LancelotR

    LancelotR MDL Novice

    Dec 25, 2017
    2
    0
    0
    Hi all,

    Big Thanks for NSUDO Mouri,
    I am happy ;)

    Only small thing:

    Can we have lnk (shortcut) support to execute nsudo with a .lnk file which will open relevant application with rights ?

    This will get right click work with shortcuts too
    (
    like exe etc. with
    post154 156 - https://forums.mydigitallife.net/th...administration-tool.59268/page-8#post-1385247
    )

    giving example:

    having D:\Portabless\Nsudo\x64\NSudo.exe :
    Adding following registry:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\lnkfile\shell\RunAsSystem (NSudo)]
    ;"D:\Portabless\Nsudo\x64\NSudo.exe"
    "Icon"=hex(2):44,00,3a,00,5c,00,50,00,6f,00,72,00,74,00,61,00,62,00,6c,00,65,\
      00,73,00,73,00,5c,00,4e,00,73,00,75,00,64,00,6f,00,5c,00,78,00,36,00,34,00,\
      5c,00,4e,00,53,00,75,00,64,00,6f,00,2e,00,65,00,78,00,65,00,00,00
    
    [HKEY_CLASSES_ROOT\lnkfile\shell\RunAsSystem (NSudo)\Command]
    @="D:\\Portabless\\Nsudo\\x64\\NSudo.exe -U:S -P:E \"%1\""
    
    [HKEY_CLASSES_ROOT\lnkfile\shell\RunAsTrustedInstaller (NSudo)]
    ;"D:\Portabless\Nsudo\x64\NSudo.exe"
    "Icon"=hex(2):44,00,3a,00,5c,00,50,00,6f,00,72,00,74,00,61,00,62,00,6c,00,65,\
      00,73,00,73,00,5c,00,4e,00,73,00,75,00,64,00,6f,00,5c,00,78,00,36,00,34,00,\
      5c,00,4e,00,53,00,75,00,64,00,6f,00,2e,00,65,00,78,00,65,00,00,00
    
    [HKEY_CLASSES_ROOT\lnkfile\shell\RunAsTrustedInstaller (NSudo)\Command]
    @="D:\\Portabless\\Nsudo\\x64\\NSudo.exe -U:T -P:E \"%1\""
    do not work with shortcuts.


    giving working example:

    having D:\Portabless\Nsudo\x64\NSudo.exe :
    Adding following registry:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\exefile\shell\RunAsSystem (NSudo)]
    ;"D:\Portabless\Nsudo\x64\NSudo.exe"
    "Icon"=hex(2):44,00,3a,00,5c,00,50,00,6f,00,72,00,74,00,61,00,62,00,6c,00,65,\
      00,73,00,73,00,5c,00,4e,00,73,00,75,00,64,00,6f,00,5c,00,78,00,36,00,34,00,\
      5c,00,4e,00,53,00,75,00,64,00,6f,00,2e,00,65,00,78,00,65,00,00,00
    
    [HKEY_CLASSES_ROOT\exefile\shell\RunAsSystem (NSudo)\Command]
    @="D:\\Portabless\\Nsudo\\x64\\NSudo.exe -U:S -P:E \"%1\""
    
    [HKEY_CLASSES_ROOT\exefile\shell\RunAsTrustedInstaller (NSudo)]
    ;"D:\Portabless\Nsudo\x64\NSudo.exe"
    "Icon"=hex(2):44,00,3a,00,5c,00,50,00,6f,00,72,00,74,00,61,00,62,00,6c,00,65,\
      00,73,00,73,00,5c,00,4e,00,73,00,75,00,64,00,6f,00,5c,00,78,00,36,00,34,00,\
      5c,00,4e,00,53,00,75,00,64,00,6f,00,2e,00,65,00,78,00,65,00,00,00
    
    [HKEY_CLASSES_ROOT\exefile\shell\RunAsTrustedInstaller (NSudo)\Command]
    @="D:\\Portabless\\Nsudo\\x64\\NSudo.exe -U:T -P:E \"%1\""
    
    works fine with exefiles.


    Big Thanks again for NSUDO :)
     
  8. LancelotR

    LancelotR MDL Novice

    Dec 25, 2017
    2
    0
    0
    Hi Mouri_Naruto,

    I understand new fronted and fine with that. :)

    Following you, to avoid see first cmd screen what I do:
    eg.
    Computer\HKEY_CLASSES_ROOT\lnkfile\shell\RunAsSystem (NSudo)\Command
    D:\Portabless\Nsudo\x64\NSudo.exe -U:S -P:E -ShowWindowMode:Hide cmd.exe /c Start "NSudo" "%1"

    and on CommandStore way (for submenus)
    I added an additional.CMD keys
    eg.
    ......\CommandStore\shell\NSudo.RunAs.CMD.System\command
    D:\Portabless\Nsudo\x64\NSudo.exe -U:S -P:E -ShowWindowMode:Hide cmd.exe /c Start "NSudo" ""%1""
    .....
    ---->
    Classes\lnkfile\shell\NSudo,SubCommands,NSudo.RunAs.CMD.TrustedInstaller;NSudo.RunAs.CMD.System

    ps: also tested with cmd.exe and some .cmd files, all work fine here (gui showed etc.)

    I hope above is useful.

    Thanks for quick feedback. :)
     
  9. Thomas Dubreuil

    Thomas Dubreuil MDL Member

    Aug 29, 2017
    148
    232
    10
    The other problem is, when you type NSudo -install to add NSudo to the context menu the command is not parsed correctly.
    Nsudo -install adds
    Code:
    "C:\WINDOWS\NSudo.exe" -U:S -ShowWindowMode=Hide cmd /c start "NSudo.ContextMenu.Launcher" %1
    (which does not work with "space in application path")
    while it should add
    Code:
    "C:\Windows\NSudo.exe" -U:T -ShowWindowMode=Hide cmd /c start "NSudo.ContextMenu.Launcher" "%1" 
    (correct command)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Mouri_Naruto

    Mouri_Naruto MDL Senior Member

    Jul 10, 2014
    252
    861
    10
    Got it. I will fix them, thanks.

    Mouri.
     
  11. Mouri_Naruto

    Mouri_Naruto MDL Senior Member

    Jul 10, 2014
    252
    861
    10
    New features roadmap about future versions of NSudo

    • Windows AppContainer
      • Specify the AppContainer.
      • Specify the AppContainer Capabilities.
      • Redirect File and Registry with NSudo NShadow Extension
    • Token
      • Run as other standard user with the username and password.
      • Run as specific process, session or service token.
      • Include, exclude, enable or disable token privileges.
    • Job Object
      • Limit the process memory.
    • Process
      • Specify the CPU cores and NUMA nodes.
      • Set or remove environment variables.
    • Configuation
      • Introduce the NSudo Envrionment Configuation File.
      • Specify the path of the ShortCutList file.
      • Manage the environments and ShortCutList items.
    • Developer
      • NSudo C++ SDK
    • User Experience
      • Introduce the new UI.
      • Publish to chocolatey.

    I hope I can implement all of these features in 2019. What is your opinion on them?

    Mouri
     
  12. slayer9450

    slayer9450 MDL Member

    Aug 3, 2015
    181
    71
    10
    What I would like most from NSudo in the future is to be able scroll command prompt and powershell windows.
     
  13. Mouri_Naruto

    Mouri_Naruto MDL Senior Member

    Jul 10, 2014
    252
    861
    10
    If you are using Windows 10 Version 1803 or later, you are able to scroll console windows which the process are running under the System token context. (TrustedInstaller Token = System Token + TrustedInstall SID)
    I have tried to add the support in the old system, but I didn't find a way to solve it.

    upload_2018-12-16_15-17-55.png

    Mouri
     
  14. pf100

    pf100 MDL Expert

    Oct 22, 2010
    1,275
    1,841
    60
    @Mouri_Naruto NSudo 6.1 works great. Just tried nsudoc 6.1. Hides command prompts without making the cursor flash a wait cursor for a split second like powerrun does. The -Wait option executes far faster than powerrun with a timeout. Works better than I expected. For my uses, it's perfect.
    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Thomas Dubreuil

    Thomas Dubreuil MDL Member

    Aug 29, 2017
    148
    232
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Thomas Dubreuil

    Thomas Dubreuil MDL Member

    Aug 29, 2017
    148
    232
    10
    #338 Thomas Dubreuil, Dec 22, 2018
    Last edited: Jan 9, 2019
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,408
    240
    60
    Launching NSudo.exe as Admin, selecting Trusted Installer + All Privs, and then selecting .exe is still more powerful and gives more freedom than selecting the same .exe, right-clicking, and selecting NSudo Trusted Installer + All Privs from context menu. Why is that?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    748
    451
    30
    Question:
    Often when doing hdd backup/recovery there are ntfs file permission issues. explorer prompts to get permission and then you gotta wait all that time. However, when using PE to access drive, there are never any warnings. I assumed that had to do with PE running as higher privileges. Issue is - with nsudo running explorer at high privilege I still get permission issues on drives.

    In short, can nsudo run explorer in a way that gives full access to other ntfs drives, similar to PE?

    Any tips?

    Thanks in advance!

    P.S. Also fine when using cmd as admin