DIGIT-ARC read-only archive · snapshot: July 23, 2026

Know Your Operating System Install Date

30 posts · originally from https://geek.digit.in/community/threads/know-your-operating-system-install-date.77207/

topgear
topgear Original post #1
Jan 2, 2008 at 8: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.

Code:
' © 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
Code:
systeminfo
RCuber
RCuber #2
Jan 2, 2008 at 8:26 PM
Here is the original site :)

Link

you can also use this

Code:
systeminfo | find /i "install date"
nvidia
nvidia #3
Jan 2, 2008 at 8:29 PM
Nice...:)
V
vaibhavtek #4
Jan 2, 2008 at 8:39 PM
Nice trick.
topgear
topgear #6
Jan 3, 2008 at 5:26 AM
Thanks Charan For The Link :)
Thanks guys for all of your praises :)
Batistabomb
Jan 3, 2008 at 1:58 PM
Thanks top gear it was displaying on a single Click
M
Jan 3, 2008 at 2:32 PM
Doesn't tell me anything.
topgear
topgear #10
Jan 3, 2008 at 5: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
sukhi420 #11
Jan 3, 2008 at 6: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
xbonez #12
Jan 3, 2008 at 6:55 PM
^^same with me..same date 5/7/2005 whereas i installed about 4months back
RCuber
RCuber #13
Jan 3, 2008 at 6:59 PM
no problem here, both script and command shows same date.
Rockstar11
Jan 3, 2008 at 7:00 PM
*gigasmilies.googlepages.com/16.gif OS install date - 26/02/2006, Time -06:57:14
Batistabomb
Jan 4, 2008 at 12:52 PM
but for me it show all correct, august 15 2007
krates
krates #16
Jan 4, 2008 at 3:12 PM
good one
djmykey
djmykey #17
Jan 6, 2008 at 12:45 PM
Nice mine shows as
Code:
Original Install Date:     10/21/2007, 8:17:03 AM
skeletor
skeletor #18
Jan 6, 2008 at 1: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
clmlbx #19
Jan 6, 2008 at 2:55 PM
it shows 5/7/2005 .........using both ( script and command )

anyone know's why
N
Net007 #20
Jan 6, 2008 at 5:27 PM
Thanks.:)
praka123
praka123 #21
Jan 6, 2008 at 5: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
maxmk #22
Jan 7, 2008 at 3:41 AM
Hello,

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

Code:
C:\>systeminfo | find /i "install date"
Original Install Date:     9/22/2007, 2:50:54 AM
M
mehulved #23
Jan 7, 2008 at 4: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.
victor_rambo
Jan 7, 2008 at 1:09 PM
All those who are being shown the wrong date of 2005, are you a victim of rampant piracy in India? :D
V
valtea #26
Jan 9, 2008 at 10:58 PM
nice bit
New
New #28
Jan 10, 2008 at 9:32 AM
Useful tip.Thanks....
topgear
topgear #29
Jan 12, 2008 at 4:41 PM
thanks guys.
satyamy
satyamy #30
Jan 12, 2008 at 5: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