Stan's blog

Windows

RDP - Как открыть Windows Remote Desktop с введенным паролем автоматически

27 февраля 2024
Необходимо отредактировать RDP файл, добавив в него
domain:s:ДОМЕН
username:s:ПОЛЬЗОВАТЕЛЬ
password 51:b:ЗАКОДИРОВАННАЯ СТРОКА
В качестве пароля подставляется криптованная строка, получить которую можно с помощью powershell
powershell.exe "('ПАРОЛЬ' | ConvertTo-SecureString -AsPlainText -Force) | ConvertFrom-SecureString"
Может быть, что понадобится поменять политику (но это не точно)
Open the Group Policy editor (Start > Run > gpedit.msc) and navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Connection Client

For value Do not allow passwords to be saved, check that is set to Disabled.

When connecting to a machine in Remote Desktop Connector, expand the Options panel and confirm that Allow me to save credentials is checked.