Script after installing an appSolved

Participant
Discussion
1 week ago Apr 26, 2026

Hey, quick question, I’m trying to run a script right after installing an application on a Windows machine. The catch is, the script needs to run in the logged-in user context and not as System/admin.

From what I understand, if I deploy it via Hexnode UEM, it’ll execute as admin by default. Has anyone found a reliable way to make it run as the actual user instead?

Replies (2)

Marked SolutionPending Review
Participant
1 week ago Apr 26, 2026
Marked SolutionPending Review

I think the script will always run as System, no matter what.

Marked SolutionPending Review
Hexnode Expert
1 week ago Apr 26, 2026
Marked SolutionPending Review

Hi @vance_j,

By default, scripts deployed via Hexnode UEM on Windows devices execute in the SYSTEM context. If your use case requires execution in the user context, try the following:

  • Required Apps: For Windows Enterprise apps, use the Custom Installation Settings within the Required Apps policy. This allows you to upload a post-install script that triggers automatically as soon as the installation binary finishes.
  • Script-level Handling: Use the $currentUser variable in your script to target and apply actions to the correct user profile.
  • Leverage User Context via Policy Scripts: When deploying scripts through Policies → Windows → Configurations → Scripts, they can execute within the active user session if configured appropriately. This depends on how the script is structured and triggered.

Regards,
Sienna Carter
Hexnode UEM

Save