Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. Windows PowerShell
  2. Copyright (C) Microsoft Corporation. All rights reserved.
  3.  
  4. Try the new cross-platform PowerShell https://aka.ms/pscore6
  5.  
  6. PS C:\Users\TuN> $u = New-Object -ComObject Microsoft.Update.Session
  7. >> $u.ClientApplicationID = 'MSDN Sample Script'
  8. >> $s = $u.CreateUpdateSearcher()
  9. >> #$r = $s.Search("IsInstalled=0 and Type='Software' and IsHidden=0")
  10. >> $r = $s.Search('IsInstalled=0')
  11. >> $r.updates|select -ExpandProperty Title
  12. Advanced Micro Devices - MEDIA - 11/16/2017 12:00:00 AM - 10.0.1.6
  13. Advanced Micro Devices Inc. - SecurityDevices - 6/19/2019 12:00:00 AM - 4.11.0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement