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

前端 未结 8 727
眼角桃花
眼角桃花 2020-11-28 19:14

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, administrati

8条回答
  •  遥遥无期
    2020-11-28 20:00

    Browse to C:\windows\System32 and right click on cmd.exe and run as Administrator. Worked for me on Windows 7.

    If you are trying to run a script with elevated privileges you could do the same for the script file or use the scheduler's run as a different user option to run the script.

提交回复
热议问题