First of all, thank you for this script! Been using it for a while! At present, it seems creds are persisted after use - see screenshot:  Could a switch parameter be added with `cmdkey /delete:` to delete the cred to prevent persistence in the credential store? Source: https://superuser.com/questions/1341378/powershell-remote-desktop-connection-specifying-user-and-password/1341443#1341443