Home » Questions » Computers [ Ask a new question ]

Force CMD.EXE to run as admin [duplicate]

Force CMD.EXE to run as admin [duplicate]

Is it possible to force cmd.exe to always run with administrator rights?

Asked by: Guest | Views: 240
Total answers/comments: 2
Guest [Entry]

"If you are in Windows Vista or Windows 7:

Press start
Type ""cmd""
Hit Ctrl + Shift + Enter
Press Yes to accept the resulting UAC prompt (or Alt + C on Windows Vista, or Alt + Y on Windows 7)

This method will run any application as administrator."
Guest [Entry]

"If you're using Windows XP, you could create a short cut to cmd.exe in the Quick Launch area and then right click -> Properties and change the Target field. You would preface the command with runas /noprofile /user:DOMAIN\USERNAME

The full text of the command on my computer is

C:\WINDOWS\system32\runas.exe /noprofile /user:DOMAIN\USERNAME %SystemRoot%\system32\cmd.exe"