Host.Local.RunApplication run as admin

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

Host.Local.RunApplication run as admin

Post by rsudhak » Mon Sep 02, 2019 11: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: 5071
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Host.Local.RunApplication run as admin

Post by odklizec » Mon Sep 02, 2019 2: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
runasadmin.png (25.84 KiB) Viewed 77 times
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: 72
Joined: Fri Jan 04, 2019 1:38 pm

Re: Host.Local.RunApplication run as admin

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

cool, Thanks