I have a batch script with this command in it
installutil /account=user /Password=password /config="ServiceConfig.xml" /LogFile="ex.InstallLog" "Hosting.exe"
When i run the script in commandLine i have a creation process with ID 4688 logged in windows security logs with a password in plain text in IT .
How can i proceed to not show plain text password in the security logs?
I can't turn off the windows logs because they are used by the security team in my company and i can not use the local service credentials so i have to set it this way to be able to use the automated script .

I think I have found a solution to not show the password in plain text.
I have tested, and using this part in the scripts, I don't see the password in the event viewer.
First, save it as follows:
Then, use it in the scripts as follows:
So far, I have not seen it again in plain text.
The exported credentials are only valid on the machine that generated the file and with the user that generated them.