replace a string on a text file on a remote computer
Currently, I have to type in \\RemotecomputerName\c$ I will be prompted to type in RemotecomputerName\administrator and password.
then open a text file (it has extension of CMD). the file has few lines on it , but the string I want to replace is called username and comes after -username (notice the dash before username).
aaaaaa bbbbbbbb ccccccccc dddddddddd -username username
then Save the file.
I need this operation to be done by a script