how to run exe as administrator?

Discussion about using the VirtualBox API, Tutorials, Samples.
Locked
KrekerMeister
Posts: 15
Joined: 14. Sep 2022, 17:00

how to run exe as administrator?

Post by KrekerMeister »

There is a clean guest session (guest additions are enabled and working). I'm trying to run my compiled autoit script (exe), the script installs applications and makes some changes to the system. It only requires admin rights. An attempt through runas in cmd gives nothing, the cmd process in a new session (IGuestSession) is simply created and does not move anywhere. In any case, the runas session gui does nothing. Is there a way to run and make changes?

I get into the windows session through the terminal
fth0
Volunteer
Posts: 5152
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: how to run exe as administrator?

Post by fth0 »

Is this a question meant for the VirtualBox API subforum? ;)
mpack
Site Moderator
Posts: 38847
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: how to run exe as administrator?

Post by mpack »

Undoubtedly, as that is where the OP has posted all of their other questions. Topic moved.
scottgus1
Site Moderator
Posts: 19855
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: how to run exe as administrator?

Post by scottgus1 »

KrekerMeister wrote:I get into the windows session through the terminal
How are you doing this?
noteirak
Site Moderator
Posts: 5227
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: how to run exe as administrator?

Post by noteirak »

Dup of viewtopic.php?f=34&t=108966, closing...
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Locked