Best Method for installing Windows Applications as Administrator

Best Method for installing Windows Applications as Administrator

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?

7 Answers

Order By:   Standard | Newest | Votes
DDMOD@SOTI | posted this 27 January 2020

Hi Justin,

 

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

 

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

  • 0
  • 0
Randy, Saputra | posted this 12 May 2020

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

  • 1
  • 0
John Doe | posted this 12 May 2020

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.

Kind Regards John

  • 0
  • 0
DDMOD@SOTI | posted this 26 May 2020

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,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

  • 1
  • 0
John Doe | posted this 27 May 2020

Hi DDMOD,

can you give an example for such an installscript?

Kind Regards John

  • 0
  • 0
Randy, Saputra | posted this 27 May 2020

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

  • 0
  • 0
DDMOD@SOTI | posted this 24 June 2020

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,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

  • 1
  • 0

Give us your feedback
Give us your feedback
Feedback