I am looking to launch cmd as admin, I obviously have my user and password.
I looked it up and saw Run *RunAs and also saw the task sched idea but wondering if anyone knows a way to script it so it launches the admin cmd using the user and pass I place in the script.
Thanks
Launch Admin CMD by using User and Password Topic is solved
Re: Launch Admin CMD by using User and Password
Check out the sample that is given in the help for RunAs.
Re: Launch Admin CMD by using User and Password
I spent a good 2 hours trying what is written in the documentation and nothing worked.
All I need to do is to launch administrator CMD using my username and pw, just open the cmd window as admin using my credentials.
I had no luck trying all types of combinations.
Can you help please?
All I need to do is to launch administrator CMD using my username and pw, just open the cmd window as admin using my credentials.
I had no luck trying all types of combinations.
Can you help please?
Re: Launch Admin CMD by using User and Password
You've meant that? https://autohotkey.com/board/topic/9736 ... -as-admin/NateHarul wrote:I am looking to launch cmd as admin, I obviously have my user and password.
I looked it up and saw Run *RunAs and also saw the task sched idea but wondering if anyone knows a way to script it so it launches the admin cmd using the user and pass I place in the script.
Thanks
Re: Launch Admin CMD by using User and Password
Hi, saw that, that is why I mentioned the task sched in my OP. So im wondering if there is a way to launch admin cmd using my username and pass?BoBo wrote:You've meant that? https://autohotkey.com/board/topic/9736 ... -as-admin/NateHarul wrote:I am looking to launch cmd as admin, I obviously have my user and password.
I looked it up and saw Run *RunAs and also saw the task sched idea but wondering if anyone knows a way to script it so it launches the admin cmd using the user and pass I place in the script.
Thanks
Re: Launch Admin CMD by using User and Password
Code: Select all
runas, username, password, domain
run, cmd
Re: Launch Admin CMD by using User and Password
opens regular cmd not admin cmd, try itTomer wrote:?Code: Select all
runas, username, password, domain run, cmd
Re: Launch Admin CMD by using User and Password
if you run it with user who has admin rights on the machine,
the cmd probably runs as admin
the cmd probably runs as admin
Re: Launch Admin CMD by using User and Password
That is not correct, try it and seeTomer wrote:if you run it with user who has admin rights on the machine,
the cmd probably runs as admin
Re: Launch Admin CMD by using User and Password Topic is solved
Code: Select all
runas, username, password, domain
run *runas cmd
Re: Launch Admin CMD by using User and Password
thanks, saw that in documentation, tried it but got an error "system verbs unsupported " I tried cmd.exe as wellXtra wrote:Code: Select all
runas, username, password, domain run *runas cmd
If someone has any code that I could test that would not be a system verb to launch the admin cmd let me know
Who is online
Users browsing this forum: No registered users and 261 guests