r/PowerShell • • Jan 30 '26

Question Powershell script to replace serviceui.exe

Hi,

With MDT deprecated, ServiceUI.exe is no longer officially supported or easily available.

I'm specifically looking for a replacement that can:

- escape session 0,

- obtain an interactive elevated user token,

- and launch a GUI installer inside the active user session.

This is required for legacy GUI-based installers (Oracle products, etc.) that cannot run fully unattended.

PSADT is not sufficient here, since it only injects UI but does not provide real session switching + elevation.

Has anyone implemented a viable alternative (PowerShell, C#, native Win32, etc.)?

Thanks!

13 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/IJustKnowStuff Feb 01 '26 edited Feb 01 '26

If that github link is the script I'm thinking it is, and the one I've used before, you launch it as SYSTEM, and then the process you activate will run as the currently logged on user. Although it won't be interactive if you launch this as system via Task Scheduler.

EDIT: Here's a link to where I've talked about this before https://www.reddit.com/r/PowerShell/s/UGDvfEFclS

1

u/Any-Victory-1906 Feb 02 '26

Not sure, I will have to get a look.