I want to launch another executable file from a BAT file that I ran with administrator privileges without granting administrator privileges.
Hoge.bat
@ECHO OFF
START NOTepad
exit
If you run Hoge.bat with administrator privileges, Notepad will also be granted administrator privileges, so I would like to stop it.I would appreciate it if you could let me know if you could use PowerShell or an external tool.
powershell batch-file
If you specify 0x2000 as the trustlevel option in RUNAS, it appears that you can execute the command with general user privileges.
runas/trustlevel:0x20000 execution command
363 Logging Out with the Application Load Balancer and Authentication Using Cognito
364 winget install-e --id Microsoft.WindowsSDK fails.
356 I want to change the format (date and time display) of the legend in chronological order.
372 To find Python openpyxl value coordinates
352 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2023 OneMinuteCode. All rights reserved.