I am currently creating a package for Teamviewer Host.
I want the host to report back the Teamviewer-ID of the client, and thought of using the "Notes"-field in OPSI-Configed for this.
I have successfully created the package and the Client-ID is written to the Notes-field by using:
Code: Alles auswählen
[Actions]
DefVar $ClientID$
Set $ClientID$ = GetRegistrystringvalue("[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TeamViewer\Version8] ClientID")
opsiservicecall_insertNote
[opsiservicecall_insertNote]
"method": "setHostNotes"
"params": [
"%hostId%",
"TW ID: $ClientId$"
]
Is there a way to append the text instead of replacing/overwriting what already is written in the Notes-field.
So the text would end up being:
Code: Alles auswählen
Notes:
Automatically created by linux bootimage
TW ID: 123456789
Code: Alles auswählen
Notes
TW ID: 123456789