Looking for Alternatives to ServiceUI.exe for GUI Installers

0
9
Asked By TechWizard99 On

Hey everyone! So, with the deprecation of MDT, I'm facing a bit of a challenge since ServiceUI.exe isn't officially supported anymore and is hard to get. I'm in need of a replacement that can escape session 0, grab an interactive elevated user token, and launch a GUI-based installer in the active user session. This is particularly important for legacy installers, like those from Oracle, which can't run unattended. I found PSADT to be a bit lacking since it can inject UI but doesn't handle session switching and elevation properly. Has anyone successfully implemented a viable alternative using PowerShell, C#, or something else? Thanks for your help!

4 Answers

Answered By DevExplorer45 On

Actually, the newest version of PSADT does allow for elevation. I've tried using Start-ADTProcess without silent parameters, and it launched the executable interactively in System mode, allowing for a visual installation for the user.

Answered By AppEnthusiast77 On

This topic really piques my interest! I believe the latest PSADT version avoids the need for ServiceUI, so I'd love to know what alternatives others might suggest too.

Answered By ScriptGuru22 On

Here's a PowerShell snippet that might help:
```powershell
$action = New-ScheduledTaskAction -Execute "C:PathToInstaller.exe"
$principal = New-ScheduledTaskPrincipal -GroupId "Administrators" -RunLevel Highest
Register-ScheduledTask -TaskName "InteractiveInstaller" -Action $action -Principal $principal
Start-ScheduledTask -TaskName "InteractiveInstaller"
```
Does this look like it could work for your needs? I'm still learning, so any feedback would be appreciated!

Questioner123 -

Quick question about that link you shared—does it run with system account privileges, or does it operate under the current user's privileges?

Answered By CodeCrafter88 On

We've actually handled a similar scenario using C#. Just be aware that it has the same security risks as ServiceUI.exe. Anyone else tried something like this or have better suggestions?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.