mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #1614] Script Manager: Run As User flag is ignored when using environmental variables #1010
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#1010
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 (Aug 24, 2023).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1614
Originally assigned to: @wh1te909 on GitHub.
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
The scripting system ignores the Run As User flag when using environmental variables. Running
Get-ChildItem ENV:produces identical output regardless if the Run As User is checked IF there are environmental variables.To Reproduce
Steps to reproduce the behavior:
Get-ChildItem ENV:USERNAME,USERPROFILE, and other user specific variables.USERNAME,USERPROFILE, and other user specific variables.USERNAME,USERPROFILE, and other user specific variables.Expected behavior
I expected the environmental variables to reflect the logged in user when Run As User is checked.
Screenshots
N/A
Additional context
N/A
@wh1te909 commented on GitHub (Aug 24, 2023):
fix will be in agent 2.4.12 in next release
@wh1te909 commented on GitHub (Sep 2, 2023):
released in 0.16.4