Change User Password in an RDP Session on Windows
In this article, we’ll show how to change a user password in an RDP session on a remote Windows computer. As a remote host, you may have either Windows Server with the configured Remote Desktop Services role (RDSH), or a Windows 10 workstation with one or multiple RDP connections are allowed.
The main problem users come across is that you cannot open a standard password change dialog using the Ctrl + Alt + Delete key combination in a Remote Desktop (RDP) session. This shortcut is not passed to the RDP session, as it runs on your local operating system.
In Windows Server 2003/2008, you could change a user password in RDP by clicking the Start button and selecting Windows Security -> Change Password.
In later versions, including Windows Server 2016/2019/2022 and Windows 10/11, there is no Windows Security item in the Start menu, so this method of changing user password is not applicable.
Change User Password in RDP with CTRL + ALT + END
In current Windows versions, you must use the Ctrl + Alt + End key combination to open the Windows Security dialog in an RDP session. The shortcut is the same as Ctrl + Alt + Delete, but works in an RDP window only. Select Change a password in the menu.


You can now change your password in the standard dialog box (enter your current password and set a new one twice).
Changing Password Using the On-Screen Keyboard
If you are connected to a Remote Desktop of the Windows host through a chain of RDP sessions, you won’t be able to use CTRL+ALT+END to change a user password. The first RDP window will intercept the keyboard shortcut. In these cases, you can use the built-in Windows On-Screen Keyboard to change the user’s password.
- Run the On-Screen Keyboard in the target RDP session (it is easier to do it by typing osk.exe in the Start menu);

- You will see the On-Screen Keyboard;
- Press CTRL+ALT on your physical (local) keyboard (this should be displayed on the screen) and then click Del button on the On-Screen keyboard;

- So the Ctrl+Alt+Del key combination will be sent to the remote RDP session, and a standard Windows Security dialog box will appear where you can change a password.
If your new password does not meet them, you will see the message below:

Note that if a Minimum password age is configured in the domain policy (or in the Fine-Grained Password Policies – PSO), this may prevent a user from changing their password more often than it is specified in the GPO setting.
You can view when a user password expires using PowerShell:
VBS/PowerShell Script to Change Password in RDP Session
You can call a Windows Security dialog box in an RDP session using the built-in Windows tools: VBScript, PowerShell, or a Shell shortcut.
For example, create a WindowsSecurity.vbs text file with the following VBScript code on your desktop:
set objShell = CreateObject(«shell.application»)
objshell.WindowsSecurity
If you double-click the VBS file, you will see a standard form to change your password.
You can place this VBS file on the shared desktop on your RDS host ( %SystemDrive%\Users\Public\Desktop\ ) or copy file to user desktops using GPO.

In the same way, you can open a password change window from PowerShell. Use the command below:
New-Object -COM Shell.Application).WindowsSecurity()

There is an option to create a Windows File Explorer shortcut with the following link:

Changing Passwords via the Remote Desktop Web Access (RDWEB)

If you access your RDP servers through a host with the Remote Desktop Web Access (RDWA) role, you can allow to change the expired password on the RDWA login page (it is described in detail here).
CredSSP NLA & Password Change in RDP
There is an important feature of changing an expired user password in RDP related to Network Level Authentication (NLA) and Credential Security Support Provider (CredSSP) protocol. By default, CredSSP with NLA for RDP is enabled on Windows Server 2012/Windows 8 and newer. NLA protects the RDP server by authenticating the user before establishing an RDP session with the host.
If a user password has expired or an AD administrator has enabled the userAccountControl option “User must change password at next logon” (the most often it is enabled for new AD accounts), you will see the following error when logging on using RDP:

As a result, a user cannot connect to a server using RDP and change the password.
In this case, to allow remote users to change their passwords, you can:

- Configure RDWA role with the password change page as described above; on your RDP host (not recommended. since it significantly reduces the security level of RDP connections) and use a .rdp file with the line enablecredsspsupport:i:0 for connections;
- Use a separate RDP host to change user passwords. You don’t need to install the Remote Desktop Session Host role on this host or add users to a local Remote Desktop Users group, but you have to disable NLA. Then users will be able to change their passwords, but won’t be able to logon server via RDP;
- A user can change their password remotely using PowerShell (if they have network access to a domain controller).
Как изменить пароль в RDP сессии Windows?
05.05.2021
itpro
Windows 10, Windows Server 2016, Windows Server 2019
комментариев 11
В этой статье мы рассмотрим основные способы сменить пароль пользователя на удаленном компьютере в RDP сессии. В качестве удаленного хоста может выступать как Windows Server с настроенной на нем ролью Remote Desktop Services, так и рабочая станция с десктопной Windows 10, в настройках которой разрешено одно или множественные RDP подключения.
Основная проблема, на которую натыкаются пользователи — в окне терминального (RDP) подключения к удаленному серверу нельзя вызвать привычную форму смены пароля нажатием сочетания клавиш Ctlr + Alt + Delete. Эта комбинация клавиш не передается в сессию RDP, а выполняется в вашей локальной операционной системе.
В Windows Server 2003/2008 можно было сменить пароль пользователя по RDP, нажав кнопку Пуск и выбрав пункт Windows Security -> Change Password.

Но в более новых версиях, в том числе в Windows Server 2016/2019 и Windows 10 пункт меню Windows Security (Безопасность Windows) отсутствует, поэтому этот способ смены пароля не применим.
Смена пароля в RDP с помощью комбинации CTRL + ALT + END
В современных версиях Windows для вызова окна Windows Security в RDP сессии нужно использовать сочетание клавиш Ctlr + Alt + End. Эта комбинация является аналогом комбинации Ctlr + ALt + Delete, но работает только в окне RDP подключения. В открывшемся меню выберите Change a password.

И в стандартном диалоговом окне можете изменить свой пароль (укажите старый пароль и два раза новый).

Смена пароля с помощью экранной клавиатуры
Если вы подключены к удаленному рабочему столу хоста Windows через несколько промежуточных RDP сеансов, вы не сможете использовать комбинацию CTRL+ALT+END для смены пароля пользователя. Нажатие этих клавиш будет перехвачено первым RDP окном. В таких случаях вы можете воспользоваться для смены пароля пользователя стандартной экранной клавиатурой Windows (On-Screen Keyboard).
- Запустите On-Screen Keyboard в целевом RDP сеансе (проще всего набрать osk.exe в меню Пуск);

- Перед вами появится экранная клавиатура;
- На своей физической (локальной) клавиатуре зажмите клавиши CTRL+ALT (это должно отобразиться на экране), и затем на экранной клавиатуре нажмите мышкой по кнопке Del ;

- В результате в удаленную RDP сессию будет отправлено сочетание клавиш Ctrl+Alt+Del, и откроется стандартное окно безопасности Windows из которого можно сменить пароль.
Если новый пароль не соответствует требованиям, появится сообщение:

Также обратите внимание, что в доменной политике (или в Password Settings objects) обычно настраивается параметр Minimum password age, который запрещает пользователю самостоятельно менять пароль чаще указано в этом параметре GPO.
Вызов окна смены пароля в RDP сессии через VBS/PowerShell
Вы можете вызвать диалоговое окно Windows Security в RDP сессии программно с помощью встроенных инструментов Windows: VBScript, PowerShell или shell ярлыка.
Например, создайте на рабочем столе файл WindowsSecurity.vbs со следующим кодом VBScript:
set objShell = CreateObject(«shell.application»)
objshell.WindowsSecurity
При двойном щелчке по этому vbs файлу перед вами откроется стандартная форма, через которую можно изменить пароль.
На RDS сервере вы можете поместить этот vbs файл на общий рабочий стол ( %SystemDrive%\Users\Public\Desktop\ ) или скопировать его на рабочие столы пользователей через GPO.

Аналогичное окно смены пароля можно вызвать и из PowerShell. Воспользуйтесь командой:
New-Object -COM Shell.Application).WindowsSecurity()

Есть еще вариант создания ярлыка Windows Explorer со следующей ссылкой:

CredSSP NLA и смена пароля через RDP
Есть одна важная особенность, касающаяся смены истекшего пароля пользователя по RDP, связанна с опцией Network Level Authentication (NLA) и протоколом Credential Security Support Provider (CredSSP). По умолчанию CredSSP с NLA для RDP включен во всех версиях Windows, начиная с Windows Server 2012/Windows 8. NLA обеспечивают защиту RDP сервера за счет выполнения аутентификации пользователя до установки RDP сеанса с сервером.
Если у пользователя истек пароль, или администратор AD через атрибуты пользователя включил ему опцию userAccountControl “Требовать смену пароля при первом входе в систему/ User must change password at next logon ” (чаще всего это опцию включают для новых учетных записей AD), то при входе в систему по RDP появится ошибка:

Как результат — пользователь не сможет подключиться к RDP серверу и сменить пароль.
В этом случае, чтобы пользователь мог самостоятельно сменить пароль, можно:

- Настроить RDWA со страницей смены пароля как описано выше; на RDP сервере (не рекомендуется. т.к. существенно снижает уровень безопасности для RDP подключений) и использовать для подключения .rdp файл со строкой enablecredsspsupport:i:0;
- Создать отдельный сервер для смены паролей пользователей. На этот сервер не нужно устанавливать роль Remote Desktop Session Host, не нужно добавлять пользователей в локальную группу доступа Remote Desktop Users, но нужно отключить NLA. В этом случае пользователи смогу сменить пароль, но не смогут войти на сервер по RDP
- Пользователь может изменить свой пароль удаленно через PowerShell (если у него есть сетевой доступ к контроллеру домена).
Предыдущая статья Следующая статья
Изменение пароля на удаленном рабочем столе
В данной инструкции описываются способы смены пароля на удаленном рабочем столе Windows Server.
Смена пароля на удаленном рабочем столе Windows Server 2008
При нажатии кнопки Пуск, открывается меню, в котором находится выделенная кнопка «Безопасность Windows»:

Рисунок 1 — Меню пуск — Безопасность Windows
При нажатии данной кнопки — попадаете в системное меню удаленного рабочего стола.

Рисунок 2 — Системное меню удаленного рабочего стола Windows Server 2008
Нажимаем Сменить пароль, после чего требуется ввести старый пароль, новый пароль и повторно новый пароль для подтверждения, далее нажимаем на стрелку для подтверждения смены пароля. При следующем подключении потребуется уже ввести новый пароль.

Рисунок 3 — Меню смены пароля Windows Server 2008
В Windows Server 2012\2016\2019 убрали возможность войти в системное меню через меню Пуск, остался способ через комбинацию клавиш. В сеансе удаленного рабочего стола требуется использовать комбинацию клавиш Ctrl + Alt + END, так мы попадаем в системное меню удаленного рабочего стола сервера.

Рисунок 4 — Системное меню Windows Server 2016
Нажимаем Изменить пароль. После этого попадаем в меню смены пароля, вводим текущий пароль, новый пароль и повторно новый пароль, для подтверждения нажимаем стрелку после чего выйдет информационное окно об смене пароля:

Рисунок 5 — Меню смены пароля Windows Server 2016

Рисунок 6 — Информационное окно о смене пароля
На этом процедура по смене пароля закончена, не забудьте свой новый пароль для повторной авторизации на сервере.
10 ways to change password in Remote Desktop session
As a regular user of Remote Desktop sessions, you may have been confronted with the case to change your password. Control-Alt-Delete (CTRL-ALT-DEL) doesn’t allow you to change the password in the remote session, but instead gives you a menu on your actual host
Change password in Remote Desktop
There are many ways to change your password. Of course, when you’re working on your physical computer, you may just hit CTRL-ALT-DEL, but this won’t work in an RDP session
CTRL-ALT-END
Sometimes (but not always), CTRL-ALT-END helps you “ctrl-alt-delete” the session to change your password in the remote session. CTRL-ALT-END is the equivalent to CTRL-ALT-DELETE in RDP. However it depends on the OS-version session settings whether this works or not.

On screen keyboard
The On Screen Keyboard (OSK) is a virtual keyboard on your screen. This works in Windows Server 2012 / Windows 7 and higher. To reset your password with the OSK, follow these steps:

- Click Start
- Type osk and hit enter to open the on screen keyboard.
If this doesn’t work, press Windows+R to open your Run Command window. Type osk and click OK - Press and Hold CTRL-ALT keys on your physical keyboard and then click on the DEL key in the virtual keyboard (on screen)
- Minimize the OSK
- Click Change a password.
Run the shell
You can directly launch the shell to get the Windows Security Options displayed. To do so, open the Run-box or open a command prompt and copy-paste:
C:\Windows\explorer.exe shell.
Run a VBS-script
This one is nice too. Copy paste the lines below to a Notepad and save the file as securityoptions.vbs . Then open/run/execute the VBS. It will launch the Windows Security Options screen to change the password
ALTGR-END
In case you have a keyboard with the ALTGR-key, you may also use ALTGR+END to simulate CTRL-ALT-DELETE. I believe German keyboards in particuar have this key.
Reset your password in an RDP session
In contrast to changing a password, resetting a password does not require you to remember the current password. Instead you just overwrite the existing password (if any) and set a new password.
Active Directory Users and Computers
When logged on to a computer that has active directory tools installed, you may use Active Directory Users and Computers to reset the password . You need user account privileges to do so, however.
- Open Active Directory Users and Computers from your startmenu (or quicker: Start -> Run -> dsa.msc)
- Localize the account (tip: at top level, right-click and choose Find… )
- Right-click the account, and choose Reset Password…
Net user
Assuming it’s a local user (so NOT a domain user account), you can use net user to change a users’ password. To do so:
- Click Start -> Run (or press Win+R)
- Type something like “net user $username $password”. I.e. if the user account is named Peter, you could reset its password by typing: net user Peter P@55w0rd.
Powershell: Set-ADAccountPassword
In case of a domain user account, you may use the Set-ADAccountPassword cmdlet in Powershell. Note that the Active Directory module must be loaded.
Set-ADAccountPassword -Identity Peter -NewPassword (Read-Host -Prompt “Provide New Password” -AsSecureString) -Reset
Powershell: Set-LocalUser
In case of a local user, you may use the Set-LocalUser cmdlet in Powershell to reset a local users’ password
Get-LocalUser ‘Peter’ | Set-LocalUser -Password (Read-Host -Prompt “Provide New Password” -AsSecureString)