Freigeben über


Ksetup:removerealm

 

Applies To: Windows Server 2008 R2, Windows Server 2012, Windows 8

Deletes all information for the specified realm from the registry. For examples of how this command can be used, see Examples.

Syntax

ksetup /removerealm <RealmName>

Parameters

Parameter

Description

<RealmName>

The realm name is stated as an uppercase DNS name, such as CORP.CONTOSO.COM, and it is listed as the default realm when ksetup is run.

Remarks

The realm name is stored in two places in the registry: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001 and \CurrentControlSet\Control\Lsa\Kerberos.

You cannot remove the default realm name from the domain controller because this will reset its DNS information, and removing it might make the domain controller unusable.

Examples

Mistakenly set the realm name by misspelling “.COM” on the local computer to CORP.CONTOSO.CON

ksetup /setrealm CORP.CONTOSO.CON

Remove that erroneous realm name from the local computer:

ksetup /removerealm CORP.CONTOSO.CON

Verify the removal by running ksetup and review the output.

Additional references