[GH-ISSUE #514] BUG: Tasks not passing value properly #324

Closed
opened 2026-03-02 02:15:27 +03:00 by kerem · 2 comments
Owner

Originally created by @davidrudduck on GitHub (May 15, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/514

Originally assigned to: @wh1te909 on GitHub.

v0.6.10 on Ubuntu 20.04.

Set script as "Task" (not "Run Script") "ScreenConnect (Get ID)" with value -serviceName {{global.ScreenConnectService}}

The value being passed to the script is {global.ScreenConnectService} not the actual value of the variable.

When RUNNING script manually, variable passes fine.

Get-Itempropertyvalue : Cannot find path 'HKLM:\SYSTEM\ControlSet001\Services\{global.ScreenConnectService}' because 

it does not exist.

At C:\WINDOWS\TEMP\trmm\899027387.ps1:28 char:14

+ $imagePath = Get-Itempropertyvalue $regPath -Name "ImagePath"
Originally created by @davidrudduck on GitHub (May 15, 2021). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/514 Originally assigned to: @wh1te909 on GitHub. v0.6.10 on Ubuntu 20.04. Set script as "Task" (not "Run Script") "ScreenConnect (Get ID)" with value `-serviceName {{global.ScreenConnectService}}` The value being passed to the script is `{global.ScreenConnectService}` not the actual value of the variable. When RUNNING script manually, variable passes fine. ``` Get-Itempropertyvalue : Cannot find path 'HKLM:\SYSTEM\ControlSet001\Services\{global.ScreenConnectService}' because it does not exist. At C:\WINDOWS\TEMP\trmm\899027387.ps1:28 char:14 + $imagePath = Get-Itempropertyvalue $regPath -Name "ImagePath" ```
kerem 2026-03-02 02:15:27 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@wh1te909 commented on GitHub (May 15, 2021):

ah oops forgot to set the tasks to use the new function lol. will fix in next release

<!-- gh-comment-id:841740897 --> @wh1te909 commented on GitHub (May 15, 2021): ah oops forgot to set the tasks to use the new function lol. will fix in next release
Author
Owner

@davidrudduck commented on GitHub (May 15, 2021):

I am the bug finding master 😅

<!-- gh-comment-id:841740997 --> @davidrudduck commented on GitHub (May 15, 2021): I am the bug finding master 😅
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#324
No description provided.