Trigger the possible crash due to lacking .NET Framework ASAP
...simply to waste less time.
This commit is contained in:
parent
10f319e4ba
commit
e1b4c84856
|
@ -1,3 +1,4 @@
|
|||
Set userUpdatesToApply = CreateObject("System.Collections.ArrayList")
|
||||
Set updateSession = CreateObject("Microsoft.Update.Session")
|
||||
'updateSession.ClientApplicationID = "MSDN Sample Script"
|
||||
Set updateSearcher = updateSession.CreateUpdateSearcher()
|
||||
|
@ -10,7 +11,6 @@ If searchResult.Updates.Count = 0 Then
|
|||
WScript.Quit
|
||||
End If
|
||||
|
||||
Set userUpdatesToApply = CreateObject("System.Collections.ArrayList")
|
||||
Do While True
|
||||
WScript.Echo "List of applicable items on the machine:"
|
||||
For I = 0 To searchResult.Updates.Count-1
|
||||
|
|
Loading…
Reference in New Issue