Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows Server 2019 / How to Change a User Password in a Remote Desktop (RDP) Session

December 11, 2024 Windows 10Windows 11Windows Server 2019Windows Server 2022

How to Change a User Password in a Remote Desktop (RDP) Session

Users can press CTRL+ALT+DEL and select Change Password from the menu that opens to change their password on the Windows workstation. However, this won’t work if you are connected to the remote computer via an RDP session. If you press the CTRL + ALT + DEL key combination, it will not be passed to the Remote Desktop (Terminal) session. Instead, it will take you to the prompt to change a user password on a local computer.

Contents:
  • Use CTRL + ALT + END to Change User Password in the Remote Desktop Session
  • Changing Password with On-Screen Keyboard in Nested RDP Session
  • Script to Change User Password in RDP Session
  • Changing Password Through Remote Desktop Web Access (RDWeb)
  • How to Change an Expired Password via RDP with NLA CredSSP Auth Enabled

In Windows Server 2016/Windows 10 and later, users can change their password from the Settings app (Settings -> Accounts -> Sign-in options -> Password -> Change). However, it is usually difficult for users to find this option. Therefore, it is convenient to use other methods to open the password change prompt.

Change user password via Settings app

Use CTRL + ALT + END to Change User Password in the Remote Desktop Session

To open the Windows Security dialog in an RDP session, use the keyboard shortcut Ctrl + Alt + End. The shortcut is the same as Ctrl + Alt + Delete but only works in an RDP connection window.

This will bring up the Windows Security dialog box, where you can click ‘Change a password‘ to proceed.

Change a password in RDP session via Ctrl+Alt+End

Enter the current (old) and new password (twice) in the standard password change dialog.

change user password in remote desktop

The new password must match the local or domain password policy settings.

Changing Password with On-Screen Keyboard in Nested RDP Session

If you are connected to the remote computer through a chain of multiple RDP hosts (jump hosts), you cannot use CTRL+ALT+END to change the user password. This is because pressing this keyboard key will be intercepted by the first RDP session.

In these cases, the user can use the built-in Windows On-Screen Keyboard to change the password in a nested RDP session.

  1. Open the On-Screen Keyboard in the most nested RDP session (by typing osk.exe in the Start -> Run); run the On-Screen Keyboard on Windows
  2. You will see the On-Screen Keyboard;
  3. Press CTRL+ALT on your physical (local) keyboard (this should be displayed on the screen) and then click the Del key on the On-Screen keyboard in a nested RDP session;On-Screen Keyboard - pressing key combination to change password in RDP
  4. This will send the Ctrl + Alt + Del key combination to the RDP session. This will open the Windows Security window where you can change the password.

Script to Change User Password in RDP Session

The Windows Security dialog for changing the password in an RDP session can be called programmatically using a VBS/PowerShell script or a special shell shortcut.

For example, create a WindowsSecurity.vbs text file with the following VBScript code on a desktop:

set objShell = CreateObject("shell.application")
objshell.WindowsSecurity

Double-click the VBS file to open a password change window.

Place this VBS file on the shared desktop of your RDS host (%SystemDrive%\Users\Public\Desktop\), or copy it to users’ desktops via GPO.

vbs script to run WindowsSecurity window and change RDP password

You can call this Windows security prompt to change the password by using PowerShell

(New-Object -COM Shell.Application).WindowsSecurity()

A simple desktop shortcut with the following target will allow users to open a password change prompt.

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -nologo -noninteractive -command "(new-object -ComObject shell.application).WindowsSecurity()"

Create desktop shortcut to change password with powershell script

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

explorer.exe shell:::{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}

file explorer shortcut to change password

Changing Password Through 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 the expired password to be changed on the RDWA login page.

Open the IIS Manager console (InetMgr.exe) on the server with the RD Web Access role and go to the Sites –> Default Web Site –> RDWeb –> Pages. Open the Application Settings.

iis app settings

Set the PasswordChangeEnabled option to true.

Remote desktop web access: PasswordChangeEnabled

Restart IIS:

iiseset

Users can now change expired passwords via the RDS WebAccess web interface by following the link:
https://[RDWEB-HostName]/RDWeb/Pages/en-US/password.aspx

If you are using Windows Server with a language pack installed, replace en-US with your language code. For example, with de-DE for German.

RDWeb - change password page

Learn more about changing passwords via Remote Desktop Web Access.

How to Change an Expired Password via RDP with NLA CredSSP Auth Enabled

Network Level Authentication (NLA) with the Credential Security Support Provider (CredSSP) protocol is enabled by default for the RDP protocol in all modern Windows versions. CredSSP with NLA provides additional security by authenticating the user before establishing an RDP session.

If the user’s password has expired, or the AD administrator has enabled the User must change password at next logon option in the userAccountControl attribute (usually enabled for new AD user accounts), the user will receive the following error when attempting to log on via RDP:

Remote Desktop Connection
You must change your password before logging on the first time. Please update your password or contact your system administrator or technical support.

You must change your password before logging on the first time

As a result, a user cannot connect to the RDP host and change a password.

It is a good idea to notify users that their AD password is about to expire.
  • Configure an RDWA host with a password change page as described above;
  • Disable NLA on the RDP host (not recommended!!! as it significantly reduces RDP security) and use the.RDP file with the enablecredsspsupport:i:0option for connections;
  • Create a separate RDP host for password changes only. 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. In this case, users can change their password, but cannot log in to that host via RDP; disable NLA for Remote Desktop
  • Users can change their password remotely using PowerShell (requires direct access from the user’s computer to the domain controller).
2 comments
3
Facebook Twitter Google + Pinterest
previous post
Fix: The Computer Restarted Unexpectedly or Encountered an Unexpected Error on Windows
next post
Fix: Windows Cannot Connect to a Shared Printer

Related Reading

Configure NTP Time Source for Active Directory Domain

May 6, 2025

How to Cancel Windows Update Pending Restart Loop

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Cannot Install Network Adapter Drivers on Windows Server

April 29, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

2 comments

Devid December 29, 2021 - 12:10 pm

Thanks Admin!

Reply
Mike April 8, 2025 - 5:50 pm

shortcut method explorer.exe shell:::{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} not working for me. Windows 11 Pro Build 26100.3476.

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
  • How to Download Offline Installer (APPX/MSIX) for Microsoft Store App
  • Updating List of Trusted Root Certificates in Windows
  • Fix: Windows Cannot Connect to a Shared Printer
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top