Kerberos Setup tool
ksetup
- C:\Windows\system32\ksetup.exe /?
Output:
USAGE:
/SetRealm <DnsDomainName>
Makes this computer a member of an RFC1510 Kerberos Realm
/MapUser <Principal> [Account]
Maps a Kerberos Principal ('*' = any principal)
to an account ('*' = an account by same name);
If account name is omitted, mapping is deleted
for the specified principal
/AddKdc <RealmName> [KdcName]
Defines a KDC entry for the given realm.
If KdcName omitted, DNS may be used to locate KDCs.
/DelKdc <RealmName> [KdcName]
deletes a KDC entry for the realm.
If KdcName omitted, the realm entry itself is deleted.
/AddKpasswd <Realmname> <KpasswdName>
Add Kpasswd server address for a realm
/DelKpasswd <Realmname> <KpasswdName>
Delete Kpasswd server address for a realm
/Server <Servername>
specify name of a Windows machine to target the changes.
/SetComputerPassword <Password>
Sets the password for the computer's domain account
(or host principal)
/RemoveRealm <RealmName>
delete all information for this realm from the registry.
/Domain [DomainName]
use this domain (if DomainName is unspecified, detect it)
/ChangePassword <OldPasswd> <NewPasswd>
Use Kpasswd to change the logged-on user's password.
Use '*' to be prompted for passwords.
/ListRealmFlags (no args)
Lists the available Realm flags that ksetup knows
/SetRealmFlags <realm> <flag> [flag] [flag] [...]
Sets RealmFlags for a specific realm
/AddRealmFlags <realm> <flag> [flag] [flag] [...]
Adds additional RealmFlags to a realm
/DelRealmFlags <realm> <flag> [flag] [flag] [...]
Deletes RealmFlags from a realm.
/DumpState (no args)
Analyze the kerberos configuration on the given machine.
/AddHostToRealmMap <host> <realm>
Adds a mapping for <host> to <realm> to the registry.
/DelHostToRealmMap <host> <realm>
Deletes existing mapping for <host> to <realm> from the registry.
/SetEncTypeAttr <domainname> <enctypes>
Sets the encryption types trust attribute for <domain> to <enctypes> (multiple types should be separated by spaces).
Supported encryption types are:
DES-CBC-CRC, DES-CBC-MD5, RC4-HMAC-MD5,
AES128-CTS-HMAC-SHA1-96, AES256-CTS-HMAC-SHA1-96
/GetEncTypeAttr <domainname>
Gets the encryption types trust attribute for <domain>.
/AddEncTypeAttr <domainname> <enctypes>
Adds <enctypes> to the encryption types trust attribute for <domain> (multiple types should be separated by spaces).
/DelEncTypeAttr <domainname>
Deletes the encryption types trust attribute for <domain>.
Return Code: 0
C:\Windows\system32\ksetup.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
| File | Info |
|---|---|
| File Size | 40448bytes |
| Creation Time | 2022/07/08 08:48:56 |
| LastWrite Time | 2022/07/08 08:48:56 |
| ProductVersion | 10.0.19041.1 |
| FileVersion | 10.0.19041.1 (WinBuild.160101.0800) |
| Hash | Value |
|---|---|
| MD5 | 3d547b8c756973b61a634db99aca74d8 |
| SHA1 | b7d9c8fd14e8419c6f1b5d62d8dfafe8ed12be06 |
| SHA224 | 477353a5445bc0e13e6834d81a87ba244e318dac86f62a0efb0325be |
| SHA256 | f0aeee2d6851b6d1b616e85ccb24ea4045c1d00880c39be644b4899f9cac398c |
| SHA384 | 806b03890a47fbafa0eb84db288f2fcf9b2cb75314d7d19ec1b9c028184b9308619ca7c20d3d673e8f3c9268dae0eb0b |
| SHA512 | 0ad182edcf2a49e4210602ae551ecb0b5ff9412344bdd646dca923346c1c1680b574529b29a6390875686b2529124274c452fca51abeb1567003fcc6d6dd8fac |