Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to Make a CMD script with Admin

Guest
 Share

how can i make a .bat script open CMD with Admin? (like to use diskpart or sfc)

 

ex:

@echo off

color 0a

run cmd.exe (admin thing here)

 

 

Also let me know if this is in the wrong area of the forum :)

Link to comment
Share on other sites

Link to post
Share on other sites

"runas /noprofile /user:Administrator cmd"

should do the trick

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×