Finding Install Date of Windows
-
Have a Windows 7 laptop here, does anyone know of a way to figure out when the OS was installed? Not critical, but interested to find out and not sure if that gets recorded anywhere.
-
Need leading text...
PS > $os = get-wmiobject win32_operatingsystem PS > $os.ConvertToDateTime($os.InstallDate) -f "MM/dd/yyyy"
Edit: For some reason the code indent isn't working.
-
Fixed it for you. The indent can't be the first line.
-
@scottalanmiller said:
Fixed it for you. The indent can't be the first line.
Really? Wow that seems odd. I will remember that in the future.