How can I check with powershell if an account is allowed to RPD to a server

Viewed 88

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!

0 Answers
Related