Advertisement
Guest User

Untitled

a guest
Dec 6th, 2020 (edited)
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PS C:\> (Get-CimInstance Win32_OperatingSystem).InstallDate
  2.  
  3. 23 октября 2020 г. 00:49:21
  4.  
  5.  
  6. PS C:\> Get-Hotfix -id KB4562830, KB4517245 | ft HotFixID, Description, InstalledOn
  7.  
  8. HotFixID  Description InstalledOn
  9. --------  ----------- -----------
  10. KB4562830 Update      2020-09-27 00:00:00
  11.  
  12.  
  13. PS C:\> Get-ChildItem -Path HKLM:\System\Setup\Source* | ForEach-Object {Get-ItemProperty -Path Registry::$_} | Select-Object ProductName, ReleaseID, CurrentBuild, @{n="Install Date"; e={([DateTime]'1/1/1970').AddSeconds($_.InstallDate)}} | Sort-Object {[int]($_.CurrentBuild)}
  14.  
  15. ProductName            ReleaseID CurrentBuild Install Date
  16. -----------            --------- ------------ ------------
  17. Windows 7 Professional           7601         2015-05-16 13:21:02
  18. Windows 10 Pro         1511      10586        2016-02-14 14:24:16
  19. Windows 10 Pro         1607      14393        2016-08-08 15:30:31
  20. Windows 10 Pro         1703      15063        2017-07-01 13:29:05
  21. Windows 10 Pro         1709      16299        2017-12-10 10:13:24
  22. Windows 10 Pro         1803      17134        2018-05-19 11:34:51
  23. Windows 10 Pro         1809      17763        2018-12-24 16:56:36
  24. Windows 10 Pro         1903      18362        2019-08-18 19:43:21
  25. Windows 10 Pro         2004      19041        2020-08-23 20:20:17
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement