How to create a batch file to run cmd as administrator - Stack Overflow

How to create a batch file to run cmd as administrator - Stack Overflow

瀏覽:381
日期:2025-06-30
You might have to use another batch file first to launch the second with admin rights. In the first use runas /noprofile /user:mymachine\administrator yourbatchfile.bat Upon further reading, you must be able to type in the password at the prompt. You ...看更多