Code: Select all
cmdkey /generic:"servername" /user:"user id" /pass:"password" mstsc /v:"servername"
The Reason I want it: We have a problem with our admins shutting down this server at night to apply updates and thus logging us out - causing our scheduled tasks to not refresh. I want to assign this batch file to a scheduled task on my local PC to ensure that every morning, before my scripts run, I'm logged back into the server.
The Help Needed: Is there a way to get this batch file to bypass/acknoweldge this message so it finishes signing me in?
TIA