PDA

View Full Version : Know Your Operating System Install Date


topgear
02-01-2008, 08:07 PM
Here is a simple script that will tell you your OS install date & Time :)

Open Notepad. Just copy and paste the below mentioned codes into that notepad

file and save it with .vbs extension ( eg. OSINSTALLDATE.vbs ). Double

click that file & it will show your OS install date & time. Have Fun.


' © 2006 Ramesh Srinivasan.
'Returns the Operating System installation date.
strComputer = "."
Set dtmInstallDate = CreateObject( _
"WbemScripting.SWbemDateTime")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
MsgBox "Install Date: " & getmydat (objOperatingSystem.InstallDate)
Next

Function getmydat(wmitime)
dtmInstallDate.Value = wmitime
getmydat = dtmInstallDate.GetVarDate
End function


Source : I've found this code a long time back. So I could not remeber where.
But I'm mentioning it in here with the copyright information intact :D.
Don't remove that copyright information if you would like and use this code.

Other method :

Also you can also know your OS install date with this command. Just type it in
a command prompt window and press enter. Only for newbies. geeks stay apart :D

systeminfo

Charan
02-01-2008, 08:26 PM
Here is the original site :)

Link (http://windowsxp.mvps.org/getosdate.htm)

you can also use this


systeminfo | find /i "install date"

nvidia
02-01-2008, 08:29 PM
Nice...:)

vaibhavtek
02-01-2008, 08:39 PM
Nice trick.

Rockstar11
02-01-2008, 08:48 PM
good job :)

topgear
03-01-2008, 05:26 AM
Thanks Charan For The Link :)
Thanks guys for all of your praises :)

ax3
03-01-2008, 01:16 PM
@charan ka info ..... short & quick hai .......

Batistabomb
03-01-2008, 01:58 PM
Thanks top gear it was displaying on a single Click

saurabh kakkar
03-01-2008, 02:01 PM
Nice one Dude

mehulved
03-01-2008, 02:32 PM
Doesn't tell me anything.

topgear
03-01-2008, 05:21 PM
Hey Mr. Linux Expert :D. Are you using it on windows and saved the file with .vbs extension.
I've checked it with win xp and vista only. don't know about other oses.

sukhi420
03-01-2008, 06:41 PM
it shows me system install date 05/07/2005 08:54:00PM, whereas i have installed XP 15 days back. system date and time are correct

xbonez
03-01-2008, 06:55 PM
^^same with me..same date 5/7/2005 whereas i installed about 4months back

Charan
03-01-2008, 06:59 PM
no problem here, both script and command shows same date.

Rockstar11
03-01-2008, 07:00 PM
http://gigasmilies.googlepages.com/16.gif OS install date - 26/02/2006, Time -06:57:14

Batistabomb
04-01-2008, 12:52 PM
but for me it show all correct, august 15 2007

krates
04-01-2008, 03:12 PM
good one

djmykey
06-01-2008, 12:45 PM
Nice mine shows as
Original Install Date: 10/21/2007, 8:17:03 AM

gagandeep
06-01-2008, 01:24 PM
I knew when I had installed :D on 1st January, 2008.
Thanx topgear for the script. I already knew about systeminfo in CMD.

clmlbx
06-01-2008, 02:55 PM
it shows 5/7/2005 .........using both ( script and command )

anyone know's why

Net007
06-01-2008, 05:27 PM
Thanks.:)

praka123
06-01-2008, 05:40 PM
I dont know much about window$.but if u go to windows folder>system32>and some random file click properties and u can see the date :?
In Linux,i can see by this way though with seeing the properties of /boot/kernel :p

maxmk
07-01-2008, 03:41 AM
Hello,

Thanks for the info..... It shows following date for my machine.... :)

C:\>systeminfo | find /i "install date"
Original Install Date: 9/22/2007, 2:50:54 AM

mehulved
07-01-2008, 04:10 AM
Hey Mr. Linux Expert :D. Are you using it on windows and saved the file with .vbs extension.
I've checked it with win xp and vista only. don't know about other oses. I was j/k. don't take that too seriously. I know it won't work with other OS'es.

rohan_shenoy
07-01-2008, 01:09 PM
All those who are being shown the wrong date of 2005, are you a victim of rampant piracy in India? :D

topgear
09-01-2008, 04:44 PM
I was j/k. don't take that too seriously. I know it won't work with other OS'es.
I am taking that lightly

valtea
09-01-2008, 10:58 PM
nice bit

CINTEL ENTRINO
10-01-2008, 04:39 AM
nice tip....

New
10-01-2008, 09:32 AM
Useful tip.Thanks....

topgear
12-01-2008, 04:41 PM
thanks guys.

satyamy
12-01-2008, 05:02 PM
Nice One

it shows 5/7/2005 .........using both ( script and command )

anyone know's why
Just Check whether you System Date is Proper