How to know when the sysprep image applied to computer?

Posted Tuesday, 27 January 2009 by Misha Hanin
Digg!

I did a very simple script, and I run it once when I apply a new sysprep image, that imports the date, when this particular image was applied to the specific computer. Sometimes this is very important. Here is a content of my script:

@Echo Off
REM **********************************************************************************************************
REM * This script checks a date Image was deployed and import this data into the Registry as Image-Date REM **********************************************************************************************************

For /f "Tokens=2 Delims= " %%a in ('@DATE /t') do set IMG-DATE=%%a
Echo Windows Registry Editor Version 5.00 > %TEMP%\IMG-DATE.reg
Echo [HKEY_LOCAL_MACHINE\SOFTWARE\WRHA] >> %TEMP%\IMG-DATE.reg
Echo "Image-Date"="%IMG-DATE%" >> %TEMP%\IMG-DATE.reg
Reg.exe import %TEMP%\IMG-DATE.reg
Del %TEMP%\IMG-DATE.reg /Q






Reddit!Del.icio.us!Google!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites! title=
 

Add comment

You have no rights to add a new comment. May be you need to register on the site.