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
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, 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: 15.0.27
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts