Fix updateSession not being created
This commit is contained in:
parent
d40a0dd6dc
commit
3c32c26082
@ -1,3 +1,4 @@
|
|||||||
|
Set updateSession = CreateObject("Microsoft.Update.Session")
|
||||||
Set updateSearcher = updateSession.CreateUpdateSearcher()
|
Set updateSearcher = updateSession.CreateUpdateSearcher()
|
||||||
Set searchResult = updateSearcher.Search("Type='Software'")
|
Set searchResult = updateSearcher.Search("Type='Software'")
|
||||||
|
|
||||||
@ -13,4 +14,4 @@ For I = 0 to searchResult.Updates.Count-1
|
|||||||
End If
|
End If
|
||||||
update.IsHidden = true
|
update.IsHidden = true
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
Loading…
Reference in New Issue
Block a user