I got a simple code to connect to remote server. For some reason, it keep asking for password even when i already gave it in the code. The password include exclamation mark, tried to escape it with \ / " " ' ' but none of them helped me.
The code:
@echo off
cmdkey /generic:server /user:user /pass:'Aa123456!'
mstsc.exe /v:server
exit
Didn't gave the real server and user of course, but thats the password im using.
Could someone help me?