# Perform user interactions in the system context

### Usage of ServiceUI

ServiceUIx64.exe can be used to execute a certain part of a script in the user context, even though you execute the main script in the system context.

```powershell
ServiceUI.exe -process:TSProgressUI.exe %windir%\sysnative\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -NoProfile -ExecutionPolicy Bypass -nologo -File <scriptpath>
```

### Link collection

[Use ServiceUI With Intune To Bring SYSTEM Process To Interactive Mode HTMD Blog (anoopcnair.com)](https://www.anoopcnair.com/use-serviceui-with-intune-to-bring-system-process-to-interactive-mode/)

[How to display a custom window in SCCM Task Sequence using PowerShell | Slightly Overcomplicated](https://slightlyovercomplicated.com/2018/08/11/how-to-display-a-custom-window-in-sccm-task-sequence-using-powershell/)