The reason for adding install records is that I had to remove install information using the DSM Explorer to be able to access and unseal a software package.
Now I thought that the following batch file would help me achieve my goal:
@ECHO OFF
SETLOCAL
CLS
SET LISTFILE=%1
FOR /F "" %%i in (%LISTFILE%) do CALL :AddRecord %%i
GOTO End
:AddRecord
ECHO %1
sd_acmd AddInstallRecord `"Application`" `"1.3`" `"Check and install`" current current `"SYSTEM`" `"Added by script`" TARGET`=`"%1`"
GOTO :EOF
:End
ENDLOCAL
But sadly that produces only "<4> Internal Error" messages.
The file provided to the script only contains host names (like 99W7NB12345) and trying to run the command manually (with or without backticks to escape the quotes and eqal sign) also provokes that message.
I try to run this batch file on our domain manager with an account that is admin on the ITCM server. Is there anything that I'm missing? The documentation refers to a description of how to provide a target, but it differs from command to command. That leaves me a bit puzzled.
Using ITCM 12.5.1000.767 here.
Any suggestions/help would be very much appreciated.