NSudo Launcher .Net Interop 8.0 PreAlpha 3 Usage: Code: using System; namespace M2.NSudo.Demo { class Program { static void Main(string[] args) { NSudoInstance instance = new NSudoInstance(); instance.CreateProcess( NSUDO_USER_MODE_TYPE.TRUSTED_INSTALLER, NSUDO_PRIVILEGES_MODE_TYPE.ENABLE_ALL_PRIVILEGES, NSUDO_MANDATORY_LABEL_TYPE.SYSTEM, NSUDO_PROCESS_PRIORITY_CLASS_TYPE.NORMAL, NSUDO_SHOW_WINDOW_MODE_TYPE.DEFAULT, 0, true, "cmd", null); Console.ReadKey(); } } } I hope you like it. @MSMG P.S. Everything may be changed before NSudo 8.0 Stable. Kenji Mouri
Thanks, @Mouri_Naruto for awesome tool. I have small quistion. Can i use NSudoC.exe without shared DLLs? 'NSudoAPI.dll' and 'NSudoUX.dll' Good luck, Sir.
Thank you, @Mouri_Naruto very much. This tool is solution for my all problems for modified my windows 10. sorry for my bad english i'm using google translator
I will release NSudo 8.0 stable in the recent days because I don't want everyone to continue to wait. I need to update some documents. The AppVeyor CI and GitHub CI compile bugs won't be fixed until the next version. Maybe some bugs in NSudo 6.2 have not fixed because I forget that and NSudo 8.0 changes a lot. I am sorry. I hope you can feedback again if you meet these in 8.0 again. Something like Windows Longhorn. Wait for long time. I am sorry about that. Next version of NSudo will be 8.1. Kenji Mouri
Some notes Next version of NSudo will be 8.1. I will add features (run as App Container, run as other users and etc) in NSudo Launcher and NSudo Shared Library (I will keep a stable NSudo Shared Library ABI in NSudo 8.1). I will introduce a new standalone component called NSudo Cleaner, a cleanup tool like CCleaner but more lightweight and cleaner. It will support file and registry cleanup by cleanup items for the maximum safe. The format of the rule file I will choose the TOML because it looks easy to modify via notepad and nano. The reason I will introduce it is that I think some cleaners like CCleaner, WinOptimizer, Dism++ and etc is too heavy. I want to make a lightweight and easy to use tool like cleanmgr.exe, but it's more powerful. I also hope more and more people can create cleanup rule PRs for NSudo Cleaner in the future. What do you think about that? Kenji Mouri
How do I run cmd file? Code: "%~dp0bin\bin\NSudo\x64\NSudoLG.exe" -U:T -P:E "%~dpscript_x64.cmd" This does not work!
you can run LC instead of LG (and don't forget the 0) Code: "%NSudopath%\NSudoLC.exe" -U:T -P:E "%~dp0script_x64.cmd" or run your script directly and put NSudo command inside your script like this: Code: C:\Windows\system32\whoami.exe /USER | find /i "S-1-5-18" 1>nul && ( goto :START ) || ( "%NSudopath%\NSudoLC.exe" -U:T -P:E -Wait -UseCurrentConsole "%~dpnx0"&& exit /b ) :START
Put this in a command script and save. Run as admin. This will get you right-click run with trusted installer on desktop, and elsewhere. It will open in current folder. Code: reg add "HKCR\LibraryFolder\background\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\LibraryFolder\background\shell\runas" /ve /t REG_SZ /d "Command as Trusted Installer" /f reg add "HKCR\LibraryFolder\background\shell\runas\command" /ve /t REG_SZ /d "NsudoLG.exe -U:T -P:E cmd.exe /s /k \"pushd \"\"%%V\"\"" /f reg add "HKCR\Directory\background\shell\runas" /ve /t REG_SZ /d "Command as Trusted Installer" /f reg add "HKCR\Directory\background\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\Directory\background\shell\runas\command" /ve /t REG_SZ /d "NsudoLG.exe -U:T -P:E cmd.exe /s /k \"pushd \"\"%%V\"\"" /f reg add "HKCR\Directory\shell\runas" /ve /t REG_SZ /d "Command as Trusted Installer" /f reg add "HKCR\Directory\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\Directory\shell\runas\command" /ve /t REG_SZ /d "NsudoLG.exe -U:T -P:E cmd.exe /s /k \"pushd \"\"%%V\"\"" /f reg add "HKCR\Drive\shell\runas" /ve /t REG_SZ /d "Command as Trusted Installer" /f reg add "HKCR\Drive\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\Drive\shell\runas\command" /ve /t REG_SZ /d "NsudoLG.exe -U:T -P:E cmd.exe /s /k \"pushd \"\"%%V\"\"" /f reg add "HKCR\LibraryFolder\background\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\LibraryFolder\background\shell\runas" /ve /t REG_SZ /d "Command as Trusted Installer" /f reg add "HKCR\LibraryFolder\background\shell\runas\command" /ve /t REG_SZ /d "NsudoLG.exe -U:T -P:E cmd.exe /s /k \"pushd \"\"%%V\"\"" /f reg add "HKCR\Directory\background\shell\runas" /ve /t REG_SZ /d "Command as Trusted Installer" /f reg add "HKCR\Directory\background\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\Directory\background\shell\runas\command" /ve /t REG_SZ /d "NsudoLG.exe -U:T -P:E cmd.exe /s /k \"pushd \"\"%%V\"\"" /f reg add "HKCR\Directory\shell\runas" /ve /t REG_SZ /d "Command as Trusted Installer" /f reg add "HKCR\Directory\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\Directory\shell\runas\command" /ve /t REG_SZ /d "NsudoLG.exe -U:T -P:E cmd.exe /s /k \"pushd \"\"%%V\"\"" /f reg add "HKCR\Drive\shell\runas" /ve /t REG_SZ /d "Command as Trusted Installer" /f reg add "HKCR\Drive\shell\runas" /v "HasLUAShield" /t REG_SZ /d "" /f reg add "HKCR\Drive\shell\runas\command" /ve /t REG_SZ /d "NsudoLG.exe -U:T -P:E cmd.exe /s /k \"pushd \"\"%%V\"\"" /f pause
Thanks, @Mouri_Naruto for awesome tool. I have 2 suggestions. Please, Can you adding button named 'Exit'. For low risks, make TrustedInstaller is not default choose. Good luck, Sir. Sorry for bad english I'm using google translator.
I don't think it's necessary to set an "Exit" button because you can close the window directly. Also, NSudo is a tool for advanced users, and I don't know which option is wise to set to the default option.