# RDP file autologin

For our macincloud accounts, it was cumbersome to always manually login without copy-paste ability into the session.

You will need to edit the .rdp file and generate a passsword hash with a program from the internet.

- Either use POwershell:  
    ```
    ("MySuperSecretPassword!" | ConvertTo-SecureString -AsPlainText -Force) | ConvertFrom-SecureString;
    ```
- Or Get CryptRDP5 
    - Get the program [cryptRDP5.exe](https://github.com/jpawlowski/openvpn-als-applications/tree/master/adito-application-rdp-xplatform-embedded/src/windows)
    - In the location, open a command prompt to generate your password hash

[![image.png](https://wiki.sophior.com/uploads/images/gallery/2024-10/scaled-1680-/Smyimage.png)](https://wiki.sophior.com/uploads/images/gallery/2024-10/Smyimage.png)

  
  
3\. Open the RDP file with notepad and add two lines

```
password 51:b:yourhash
username:s:yourpasword
```

[![image.png](https://wiki.sophior.com/uploads/images/gallery/2024-10/scaled-1680-/qkTimage.png)](https://wiki.sophior.com/uploads/images/gallery/2024-10/qkTimage.png)

4\. Save the file and click it - you now should've bypassed the login