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

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    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
     
  2. Thomas Dubreuil

    Thomas Dubreuil MDL Senior Member

    Aug 29, 2017
    363
    620
    10
    works perfectly thank you for the hint !
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Super Spartan

    Super Spartan MDL Expert

    May 30, 2014
    1,709
    990
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    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
     
  5. 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 :)
     
  6. 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. :)
     
  7. Thomas Dubreuil

    Thomas Dubreuil MDL Senior Member

    Aug 29, 2017
    363
    620
    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...
  8. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    Got it. I will fix them, thanks.

    Mouri.
     
  9. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    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
     
  10. slayer9450

    slayer9450 MDL Member

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

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    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
     
  12. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
    @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.
     
  13. Thomas Dubreuil

    Thomas Dubreuil MDL Senior Member

    Aug 29, 2017
    363
    620
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Thomas Dubreuil

    Thomas Dubreuil MDL Senior Member

    Aug 29, 2017
    363
    620
    10
    #336 Thomas Dubreuil, Dec 22, 2018
    Last edited: Jul 10, 2019
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    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?
     
  16. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    819
    520
    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
     
  17. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    Have more ways is not a bad thing.

    I think you can read: https://forums.mydigitallife.net/threads/run-explorer-as-ti.78329/

    Mouri
     
  18. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    #340 Mouri_Naruto, Dec 27, 2018
    Last edited: Dec 27, 2018
    (OP)

    Attached Files: