3.1.5 Timer Events

StaleDeviceCleanup: (section 3.1.2)

If the integer value of the ms-DS-Maximum-Registration-Inactivity-Period attribute of the ms-DS-Device-Registration-Service is zero, the server MUST stop processing and MUST NOT delete any ms-DS-Device objects from the directory.

Otherwise, the server MUST query the directory for all ms-DS-Device objects.  For each ms-DS-Device object, the server MUST calculate the time difference (as a count of days) between the local server Coordinated Universal Time (UTC) and the time stored in the ms-DS-Approximate-Last-Logon-Time-Stamp attribute of the ms-DS-Device object.

If the count (as days) is greater than the integer value of the ms-DS-Maximum-Registration-Inactivity-Period attribute of the ms-DS-Device-Registration-Service and the local server UTC time is greater than the time stored in the ms-DS-Approximate-Last-Logon-Time-Stamp attribute of the ms-DS-Device object, the server MUST delete the ms-DS-Device object.