I have a batch file which is used to connect to a remote server.
Tha batch file contains:
WMIC /NODE:"ip_address" /user: user_name /password: pass_word process call create "path\abc.bat"
I want to encrypt pass_word.
I have a batch file which is used to connect to a remote server.
Tha batch file contains:
WMIC /NODE:"ip_address" /user: user_name /password: pass_word process call create "path\abc.bat"
I want to encrypt pass_word.
Not exact answer to the question, but, as per the comments discussion and your acceptance to the alternate approach, the below might help you to inline encode the password and pass as a parameter to WMIC: