Install GR "I Write My Own Script"

Find Windows Install Date

by Installer on Jan.29, 2010, under Windows

With Following script you can find the Windows Installed Date and Time

The Script

1
2
3
4
5
6
7
8
9
10
11
12
Set OSSet = GetObject("winmgmts://." _
& "/root/cimv2").ExecQuery("select * from Win32_OperatingSystem")
For Each OS In OSSet
wscript.echo FormatUTime(OS.InstallDate)
Next
'-----------------------------------------
'Format "Universal Time" to DD.MM.YY HH:MM
'-----------------------------------------
Function FormatUTime (S)
FormatUTime = Mid(S, 7, 2) & "." & Mid(S, 5, 2) & "." & Mid(S, 3, 2) _
& " " &  Mid (S, 9, 2) & ":" & Mid(S, 11, 2) & " "
End Function

Related posts

:, , , , ,

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

    Archives

    All entries, chronologically...