Hi Team,
I am trying to replace the string in .INI file with below method, action successfully completed and string been changed. But File permission revoked, all user revoke only administrator kept the same.
// Enter your action script here
// Enter your action script here
delete __appendfile
parameter “filename” = "D:\IBM\ITM\TMAITM6_x64\KNTCMA.INI"
action parameter query “backup_date” with description “Please specify the date backup for KNTCMA.INI” with default date “9999”
appendfile {concatenation “%0d%0a” of ( if (it starts with “KDC_FAMILIES=@Protocol@”) then (“KDC_FAMILIES=IP.SPIPE EPHEMERAL:Y HTTP_CONSOLE:N HTTP_SERVER:N PORT:3660 IP use:n SNA use:n IP.PIPE use:n”) else it as string) of lines of file (parameter “filename”)}
// backup the old file KNTCMA.INI
move “{parameter “filename”}” “{parameter “filename”}_{parameter “backup_date”}”
// replace with the new file
move __appendfile “{parameter “filename”}”
//Restart ITM OS Agent service
delete __appendfile
if {name of operating system starts with “Win”}
delete __appendfile
appendfile net stop KNTCMA_Primary
appendfile net start KNTCMA_Primary
delete restartRelay.bat
move __appendfile KNTCMA_Primary.bat
waithidden KNTCMA_Primary.bat
delete KNTCMA_Primary.bat

