Thanks again Doc... I grabbed the CTime function and it works great. For what it's worth, the InstallDate is actually showing the date the machine was ghosted, not the date the image was created.

So in other words, 2 machines with the same image. One was ghosted on 1/10/2006, and the other was ghosted on 2/15/2006....those dates are reflected in the InstallDate.

I'm thinking that maybe because I am using SYSPREP, that the sysprep process is creating a SID and finalizing the setup, which then writes those registry entries. A plain, static ghost image (non-sysprep) might have a burned-in date like you're suggesting.

And incidentally, although my original request was "date added to domain", this InstallDate value will work just as well. I just need to know when the machine was put into service. Around here they are ghosted and added to the domain within minutes. I just figured I was likely to get an AD queryable value for date added to domain so that's why I asked.

Thanks again for all the help. Works like a charm.


Edited by sixdoubleo (2006-02-17 12:47 AM)