Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you run a command as an administrator from the Windows command line?

I have a small script that performs the build and install process on Windows for a Bazaar repository I'm managing. I'm trying to run the script with elevated, administrative privileges from within the Windows shell (cmd.exe)--just as if I'd right-clicked it and chosen Run as Administrator, but without using any method that requires use of the graphical interface.

like image 265
jpaugh Avatar asked May 10 '11 01:05

jpaugh


1 Answers

Press the start button. In the search box type "cmd", then press Ctrl+Shift+Enter

like image 111
slashdottir Avatar answered Oct 07 '22 21:10

slashdottir