I have this password, ;d#se#&4~75EY(H[SM"%cznGB
.
I need to use this inside an automatically created command line command.
(using it for TFS Release pipeline, to create a virtual directory and this password belongs to a service user and saved in a global variable as secret input, and TFS puts that password string in doublequotes when creating the command).
Having a hard time escaping the scpecial characters in it.
What I tried so far is to escape all alphanumeric characters by ^
and escaping %
and "
characters by doubling them. But so far, didn't have much luck :(
The list of failed attempts are these.
;d#se#&4~75EY^(H[SM""%%cznGB
;d#se#&4~75EY(H[SM\"%%cznGB
^;d^#se^#^&4^~75EY^(H^[SM""%%cznGB
^;d^#se^#^&4^~75EY^(H^[SM\"^%cznGB
^;d^#se^#^&4^~75EY^(H^[SM\"%%cznGB
^;d^#se^#^&4^~75EY^(H^[SM""^%%cznGB
;d#se#&4~75EY(H[SM"^^^%%cznGB
;d#se#&4~75EY(H[SM"^^^^%%cznGB
;d#se#&4~75EY(H[SM^""^%%cznGB
^;d^#se^#^&4^~75EY^(H^[SM^""^%%cznGB
^;d^#se^#^&4^~75EY^(H^[SM^""%%cznGB
;d#se#&4~75EY(H[SM""%%cznGB
Can you please give me a hand finding the correct escaped string to use it in a batch or in CMD as an inline command?
Before anyone downvotes this question because I posted a password, I edited many parts of it before posting. Just saying :)
UPDATE:
As I mentioned in the question, TFS creates a command text to set the virtual folder access credentials to IIS, for a specific web application. The log shows the command text like this.
"C:\WINDOWS\system32\inetsrv\appcmd.exe" set vdir /vdir.name:"appfolder/Files" -physicalPath:"\\servername\virtualfolder" -userName:"sa_user@domain.com" -password:";d#se#&4~75EY(H[SM"%cznGB"
(I entered the password as it is, for this output)