Know Your Operating System Install Date

Status
Not open for further replies.

topgear

Super Moderator
Staff member
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

The Mighty Unkel!!!
Staff member
Here is the original site :)

Link

you can also use this

Code:
systeminfo | find /i "install date"
 
OP
topgear

topgear

Super Moderator
Staff member
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

Banned
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
 

skeletor

Chosen of the Omnissiah
I knew when I had installed :D on 1st January, 2008.
Thanx topgear for the script. I already knew about systeminfo in CMD.
 
Status
Not open for further replies.
Top Bottom