Credential Manager - Change Password

Posted on 2011-04-19
Last Modified: 2012-05-11
In Windows 7's Credential Manager, we added an RDP server with my credentials. It works. If I change my password on the Domain, it doesn't reciprocate to the Credential Manager. Does anyone know of a way to make this happen (via script, gpo, etc.)? Thanks.
Question by:CMilne
    LVL 40

    Accepted Solution

    The password saved in Credential Manager can be updated by script.

    BUT, you need to ask your domain admin to change the following local group policy in your windows 7.

    1. Open Group Policy Editor via cmd -> gpedit.msc
    2. Navigate to Local Computer Policy\Computer Configuration\Administrative Templates\System\Credentials Delegation\
    3.Open Setting Allow Delegating Saved Credentials with NTLM-only Server Authentication, set it to Enabled click on button Show... and in Show Contents window add Value TERMSRV/[Ip address of the terminal server]. Close all windows by pressing OK.
    4. Run cmd and enter gpupdate command to update your policy.


    The script to change the RDP password is as follows:-

    cmdkey /add:TERMSRV/[IP address of terminal server] /user:[Doamin User Name] /pass:[Password]

    Open in new window

    where [Doamin User Name] is your user name for domain logon and [Password] is your new password.

    Save the script above as a batch file and you can edit it after you have changed your domain password.

    Of course, encrypted the bat file and save it at a secured location.
    LVL 40

    Expert Comment

    by:Jackie Man
    If still no go, you may need to change the script as follows:-

    attrib -h %USERPROFILE%\Documents\Default.rdp
    del %USERPROFILE%\Documents\Default.rdp 
    cmdkey /add:TERMSRV/[IP address of terminal server] /user:[Doamin User Name] /pass:[Password]

    Open in new window

    The script above will delete the existing default.rdp file and the system will create a new default.rdp file when you start a new rdp session.
    LVL 40

    Expert Comment

    by:Jackie Man
    The information inside the Credential Manager is stored locally in your Windows 7 and I do not think that any server-side script or GPO can update the password inside it.

    Author Closing Comment

    This worked

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
    This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now