Best Method for installing Windows Applications as Administrator

JP
Justin Pratt
Kansas City Southern

I am needing to install an application on a series of Windows 10 devices. All my devices are enrolled using Windows Desktop enrollment. The installer needs to be ran as administrator in order to run properly.

We are finding that when we push the package to our test devices, the application gets installed using standard user permissions and thus does not install correctly. We have attempted marking the installer to require administrator as well as creating a shortcut with run as administrator marked for the package to execute instead.

What would be the best method to forcing a package to run as administrator on our Windows devices?

6 years ago
Windows
ANSWERS
D
DDMOD@SOTI
5 years ago

Hi Justin,

Did you try to use the post-installation scripts to run the package as an administrator?

RS
Randy, Saputra
5 years ago (edited 5 years ago)

Hi Justin,

I am facing same issue, any update about this?

Hi support,

what is the script to run the package as an Administrator?

Thank & regards,

Randy

JD
John Doe
5 years ago

I also did not found a solution for this yet, except for running the scripts when either administrator is the current logged on user or to make a workaround with taskscheduler that executes a specific cmd as Admin when a condition is met, wether Admins is logged in or not.

D
DDMOD@SOTI
5 years ago

Hi Justin,

Our package is extracted within the current user. We do not have a feature in MobiControl to switch the users when installation is happening. You can use post install scripts to execute it as a specific user.

If a thorough assistance is required to perform this, please raise a support case(click here) or call SOTI Support team(click here) to assist you better?

Regards,

JD
John Doe
5 years ago

Hi DDMOD,

can you give an example for such an installscript?

RS
Randy, Saputra
5 years ago

Hi DDMOD,

Could you give example of the script?

I think it will be useful if we can use post install scripts to execute it as an Administrator.

Thanks & regards,

Randy

D
DDMOD@SOTI
5 years ago

Hi John/Randy,

Try using the below script to execute the app as an Administrator. This should help you.

Start-Process -FilePath "powershell" -Verb RunAs

where powershell is an example for the app to Run as an Admin.

For more info, read the below link:

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/start-process?view=powershell-7

Please try and share the outcome.

Regards,