1. Convert the IPv6 address to hostname form
Replace each : in the IPv6 address with -, then append .ipv6-literal.net. See Microsoft’s naming specification.
Original address:
2001:db8:1234:5678:9abc:def0:1234:5678
Converted hostname:
2001-db8-1234-5678-9abc-def0-1234-5678.ipv6-literal.net
This fictional example uses the documentation prefix 2001:db8::/32, followed by an illustrative sequence of digits and hexadecimal letters. Replace it with your destination’s actual address.
2. Set the destination in the RDP file
Open the .rdp file in Notepad or another text editor and set the destination to the converted hostname.
full address:s:2001-db8-1234-5678-9abc-def0-1234-5678.ipv6-literal.net
alternate full address:s:2001-db8-1234-5678-9abc-def0-1234-5678.ipv6-literal.net
If you edit a signed RDP file, sign it again.
3. Save the credentials on the client PC
On the client PC from which you launch RDP, open Command Prompt or PowerShell as your usual Windows user.
First, check whether credentials already exist for this destination.
cmdkey /list:"TERMSRV/2001-db8-1234-5678-9abc-def0-1234-5678.ipv6-literal.net"
If an entry exists, check its type, destination, and username before overwriting or deleting it.
To save a new entry, run the following as a single line. Replace REMOTEPC with the destination PC’s name and rdpuser with its local username.
cmdkey /add:"TERMSRV/2001-db8-1234-5678-9abc-def0-1234-5678.ipv6-literal.net" /user:"REMOTEPC\rdpuser" /pass
Enter the destination account’s password when prompted. Leave /pass without a value rather than putting the password directly in the command. See the cmdkey documentation.
4. Check the saved entry and connect
Display the saved credentials again and check the destination and username.
cmdkey /list:"TERMSRV/2001-db8-1234-5678-9abc-def0-1234-5678.ipv6-literal.net"
Open the RDP file from step 2 and check whether it connects using the saved password. Use the same ipv6-literal.net hostname that you specified when saving the credentials.
Note: Behavior may vary depending on your environment. Please check the settings before trying these steps and proceed at your own risk.
Related products (advertisement)
As an Amazon Associate, nosubject.io earns from qualifying purchases.




