Host.Local.RunApplication run as admin

Ask general questions here.
rsudhak
Posts: 78
Joined: Fri Jan 04, 2019 12:38 pm

Host.Local.RunApplication run as admin

Post by rsudhak » Mon Sep 02, 2019 10:15 am

Hi all,

I would like to open up the AUT as admin, is there a way to this in Host.Local.RunApplication()

Thanks,
Rajee

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5348
Joined: Mon Aug 13, 2012 8:54 am
Location: Zilina, Slovakia

Re: Host.Local.RunApplication run as admin

Post by odklizec » Mon Sep 02, 2019 1:18 pm

Hi,

The easiest way is to run test itself as Administrator. Then any app started from test is started as admin. If you want to run test automatically (via CI), you can, for example, create a shortcut, in which you can enable Run As Administrator option...
runasadmin.png
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

rsudhak
Posts: 78
Joined: Fri Jan 04, 2019 12:38 pm

Re: Host.Local.RunApplication run as admin

Post by rsudhak » Wed Sep 04, 2019 12:09 pm

cool, Thanks