Freeware rdt2 and sdt2 Tool

rdt2 and sdt2 are the successors to Microsoft's well known sdt and rdt tools to read and set the date of shadow keys on a terminal server. Both new versions support 64 bit architecture and contain other improvements as well. Both tools are free to use 32 bit executables with no extra requirements.

Description

rdt2 and sdt2 are the successors to Microsoft's well known sdt and rdt tools to read and set the date of shadow keys on a terminal server. In comparison to their predecessors they both support 64 bit servers, provide status output and error messages and return a meaningful exit code.

Shadow keys

Shadow keys are specific to RDS (TS) servers. They capture the changes that are made to HKCU during an application installation. These changes will then be replicated to other users logging on to the server if they do not have the latest version stored in the shadow keys. This is determined by the existence and the timestamp of the affected keys in the user profile.
Problems arise if a server is reinstalled. During this process the shadow keys are recreated as well including a new date. Newer than the timestamp in the user profiles. This leads to another unwanted replication into the profiles. To prevent this behavior, sdt2 can be used to set the shadow key timestamps to an earlier date. rdt2 is useful to determine the actual shadow key dates to check if changes are necessary.

rdt2

rdt2 reads the timestamp of all shadow keys and outputs it with the key name and the number of sub keys. It does not require any parameters and simply outputs all dates and times of all shadow keys found. It uses the same output format as the original rdt, but it also checks the date and time of 64 bit keys on a 64 bit server. 32 bit keys on 64 bit servers can be identified by the Wow6432Node key in the path.
***************** C:\>rdt2 Key: Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software. Subkeys 17, timestamp 0:0:0:0 on 1/1/2002 Key: Microsoft. Subkeys 1, timestamp 0:0:0:0 on 1/1/2002 Key: SystemCertificates. Subkeys 3, timestamp 0:0:0:0 on 1/1/2002 Key: ca. Subkeys 3, timestamp 0:0:0:0 on 1/1/2002 Key: Certificates. Subkeys 0, timestamp 0:0:0:0 on 1/1/2002 Key: Software\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software. Subkeys 17, timestamp 0:0:0:0 on 1/1/2002 Key: Microsoft. Subkeys 10, timestamp 0:0:0:0 on 1/1/2002 Key: Direct3D. Subkeys 1, timestamp 0:0:0:0 on 1/1/2002 Key: MostRecentApplication. Subkeys 0, timestamp 0:0:0:0 on 1/1/2002 Key: Internet Explorer. Subkeys 2, timestamp 0:0:0:0 on 1/1/2002


*************

sdt2

sdt2 sets the date of all shadow keys to the specified input. The input parameters are the day, month and year for all shadow keys to set. The usage is similar to the original sdt, but 64 bit keys on a 64 bit server will be modified as well.

The input date will be parsed automatically by the CTime class constructor. It accepts day input up to 31. For months with fewer days it will roll over to the next month. An input of "31 02 2000" will then result in a timestamp of 3/2/2000, i.e. March 2nd, 2000. Any input not parseable by CTime will result in a parameter error.

C:\>sdt2 01 01 2000
Successfully updated 32 bit shadow key timestamps.
Successfully updated 64 bit shadow key timestamps.