mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #1625] Script Manager: Run As User flag doesn't work on Windows 11 #2961
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2961
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NiceGuyIT on GitHub (Sep 8, 2023).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1625
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
The Run As User flag is not honored on Windows 11.
To Reproduce
Steps to reproduce the behavior:
nt authority\system, the group will includeMandatory Label\System Mandatory Leveland environmental variables will reflect the system (i.e.USERNAME,USERPROFILE,TEMP,APPDATA).Powershell script to dump the user, groups and environment.
CMD script to dump the user, groups and environment.
Expected behavior
I expect the Run As User flag to work as expected across all versions of Windows.
Screenshots
N/A
Additional context
This may be related to the fix for #1614, but since I updated both dev and prod, I can't test the previous agent version.
@NiceGuyIT commented on GitHub (Sep 8, 2023):
This is not an issue. I was logged on via RDP but disconnected. This is explained in the docs.
To be clear, if
query sessiondoes not return an Active session, Run As User will fail. In this case, the session is disconnected and Run As User will not work.Here we have an active session. This can be achieved by logging in using Mesh and then disconnecting. This will leave the user session active on the console and Run As User works.