I need to do set this registry value from command line:


"1"="TERMSRV/* "

I can't seem to get the REG ADD command right for this.

I am trying to allow saved password for RDP connections.


The general syntax (as shown in reg add /?) is:

reg add <key> [/v <value>] [/t <type>] [/d <data>]

So your .reg file corresponds to:

reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation /v AllowSavedCredentialsWhenNTLMOnly /t REG_DWORD /d 0x00000001
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation /v ConcatenateDefaults_AllowSavedNTLMOnly /t REG_DWORD /d 0x00000001
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation\AllowSavedCredentialsWhenNTLMOnly /v 1 /t REG_SZ /d "TERMSRV/*"

(HKLM is a shortcut for HKEY_LOCAL_MACHINE.)

Of course you could just reg import the same .reg file… or use Group Policy, if you're trying to do this within Active Directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.