When running Processes, we will sometimes need to grant them Administrator rights (for example, in order to perform Services actions, or to access the window of a 3rd party app).
In order to do so, we will have to make the following two (2) apps always run as admin: WinAutomation.Console.exe and WinAutomation.UserAgent.exe
Follow the steps below:
- Go to the installation folder of WinAutomation - default location is C:\Program Files\WinAutomation and locate the above files.
- Right click on each one and select "Properties". Afterwards, under the "Compatibility" tab, we should make sure that the "Run this program as Administrator" option is selected.
- Close all WinAutomation windows, and exit WinAutomation from the system tray (WA icon at the bottom right of the screen) .
From now on, every time WinAutomation starts, the Processes it executes will have Administrator rights.
Note that now that WinAutomation.UserAgent.exe is running as admin, it will not start automatically at system startup (the WA icon at the bottom right of the screen will not be there). However, it will start after you launch the Console.
Since making this change might require admin verification every time WinAutomation runs, you may wish to turn off Windows User Account Control (UAC) to bypass this - however this is entirely optional, and depends on your preferred security settings.