I want to write a script to check that an account can access a server via RDP. I just want to check if the connection will be possible, I don't want to imput the credentials. So I am searching for a way to see if the RDP responds with the credential prompt to close the session.
Any help will be great. Thank you!