Sending commands to CMD window in Administrator mode.

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
krash2501
Newbie
Posts: 15
Joined: Thu Jul 21, 2016 7:04 pm

Sending commands to CMD window in Administrator mode.

Post by krash2501 » Thu Oct 11, 2018 10:53 pm

I have a simple script that I made but I can't get it to work with when running CMD in Administrator mode.

SetFocus>Administrator: Command Prompt
send>cd \temp
press enter
send ....

If its just a normal CMD window this works fine. How can i get it to work in Administrator mode?

User avatar
Grovkillen
Macro Veteran
Posts: 288
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, Sweden
Contact:

Re: Sending commands to CMD window in Administrator mode.

Post by Grovkillen » Fri Oct 12, 2018 7:24 am

You need to have your script in admin mode or else you need a user to interact with the UAC window.
Let>ME=%Script%

Running: MS14.4.08

Post Reply