It's expected behavior when File Explorer is ran as system account (TrustedInstaller) not particulary related to NSudoL
Explorer as TI message appears: I suppose TI normally doesn't have a desktop as it is not a user account. Fix: just create the systemprofile subfolder "Desktop"
Right, these are referenced location for system account folders, and expected they do not exist. Not sure if it could have appeared after changing explorer.exe /root, to /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D} or vice versa But finally it might be better to change script to open explorer in C: drive instead of "This PC" no ? (simply replacing by explorer.exe "%systemdrive%" )
Since MS made changes to Explorer in Windows 11, they might also have changed registry keys and/or explorer behaviour... You might try adding the /NOUACCHECK parameter see if it works (like C:\Windows\explorer.exe /NOUACCHECK /root, ) btw I just created a repository for the script...https://github.com/Thdub/RunExplorerAsTrustedInstaller and a new .exe with latest NSudo (8.2) https://github.com/Thdub/RunExplorerAsTrustedInstaller/releases And an "All in One" script, with NSudo embedded (extracting such tiny file is still way faster than Powershell alternatives) https://github.com/Thdub/RunExplorerAsTrustedInstaller/blob/main/RunExplorerAsTI-AIO.bat
Thank you for the new script Thomas. Seems to work perfect now in Win11. I prefer to use the "RunExplorerAsTrustedInstaller.bat" because I than can easily replace NSudoLC.exe when a new NSudo is released.