Hi,
When creating .rdp file in windows, you can check "Allow me to save credentials". The credential will be saved under Windows Credentials in Credential Manager. When you use mstsc or Windows remote desktop app to remote connect to the server, the termsrv.ll will call the saved credential to login automatically.
On MacOs, when you use remote desktop app for mac for remote connection, will it pop up to allow save credential? If so, choose allow and then try to export the rdp file of this connection. Test if you can use this RDP file to automatically login.
https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-mac#export-and-import-connections
Or, you can check if you can create a TERMSRV credential using Keychain on MacOS and see if the RDP file will use this saved credentials.
Thanks,
Eleven
----------
If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.