AnsweredAssumed Answered

Where is the dollar sign ($) conversion documented?

Question asked by Turranx on Aug 29, 2018
Latest reply on Aug 30, 2018 by Turranx

I have created a very simple package with a custom probe as shown here:

 

<package info>
   name = Training-Create_New_File
   description = Create a new file in C:\Temp, with a GUID for a file name.
   copyright = (C) Copyright 2018
   group = Training
   author = my_name
   date = 8/29/2018
   version = 1.0
   build = 5
   no_drop = no
</package info>
<SectionName>
   name = Training-Create_New_File
   type = simple
   OStype = windows
   OS = win64
   update = Training-Create_New_File
   <Training-Create_New_File>
      description = Generate a new file using PowerShell
      group = Training
      active = yes
      preserve_state = yes
      type = timed
      timespec = interval 10 min
      workdir =
      command = C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe
      arguments = -command { New-Item -Path "C:\Temp" -Name $((New-GUID).Guid) -ItemType File }
      config =
      logfile =
      datafile =
   </Training-Create_New_File>
</SectionName>

 

This command fails because the robot is altering the argument text by using 'MyStringExpand' to change variable names into values.  MyStringExpand thinks the dollar sign ($) is the beginning of a variable name, but cannot translate it, and throws the following error:

 

Aug 29 15:36:00:496 [1880] Controller: --------------------------------------------------------------------------------------------------------
Aug 29 15:36:00:496 [1880] Controller: ----- Robot controller 7.80 [Build 7.80.3132, Jun  1 2015] started -----
Aug 29 15:36:00:496 [1880] Controller:  Name   = winrm, IP = IP, Port = 48000
Aug 29 15:36:00:496 [1880] Controller:  OS     = Windows / Windows Server 2012 R2 Standard Evaluation, 64-bit / Service Pack 0 Build 9600
Aug 29 15:36:00:496 [1880] Controller:  Domain = TheEvilNetwork
Aug 29 15:36:00:496 [1880] Controller:  Primary HUB = /TheEvilNetwork/Nimsoft_hub/Nimsoft IP
Aug 29 15:36:00:496 [1880] Controller:  Loglevel = 0, Logfile = controller.log
Aug 29 15:36:00:496 [1880] Controller:  Running as user SYSTEM
Aug 29 15:36:00:496 [1880] Controller: -----
Aug 29 15:36:00:496 [1880] Controller: Controller on winrm port 48000 started
Aug 29 15:36:01:497 [1880] Controller: Hub Nimsoft_hub(IP) contact established
Aug 29 16:16:57:148 [1880] Controller: MyStringExpand - variable ((New-GUID).Guid) not found

 

How can I disable this MyStringExpand functionality?

Where is this translation functionality documented?

How can I view which strings are available for expansion?

Outcomes