I used this guy's script and added some more updates to hide Windows 10 and Telemetry updates but when I run it I get this error: Here is the code I used: Code: Dim hideupdates(25) hideupdates(0) = "KB2505438" hideupdates(1) = "KB2670838" hideupdates(2) = "KB2952664" hideupdates(3) = "KB2976978" hideupdates(4) = "KB2977759" hideupdates(5) = "KB2990214" hideupdates(6) = "KB3021917" hideupdates(7) = "KB3022345" hideupdates(8) = "KB3035583" hideupdates(9) = "KB3044374" hideupdates(10) = "KB3064683" hideupdates(11) = "KB3065987" hideupdates(12) = "KB3065987-v2" hideupdates(13) = "KB3065988" hideupdates(14) = "KB3065988-v2" hideupdates(15) = "KB3068708" hideupdates(16) = "KB3072318" hideupdates(17) = "KB3075249" hideupdates(18) = "KB3075851" hideupdates(19) = "KB3075853" hideupdates(20) = "KB3080149" hideupdates(21) = "KB3083324" hideupdates(22) = "KB3083325" set updateSession = createObject("Microsoft.Update.Session") set updateSearcher = updateSession.CreateupdateSearcher() Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'") For i = 0 To searchResult.Updates.Count-1 set update = searchResult.Updates.Item(i) For j = LBound(hideupdates) To UBound(hideupdates) 'MsgBox hideupdates(j) if instr(1, update.Title, hideupdates(j), vbTextCompare) = 0 then 'Wscript.echo "No match found for " & hideupdates(j) else Wscript.echo "Hiding " & hideupdates(j) update.IsHidden = True end if Next Next set updateSession = createObject("Microsoft.Update.Session") set updateSearcher = updateSession.CreateupdateSearcher() Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'") For i = 0 To searchResult.Updates.Count-1 set update = searchResult.Updates.Item(i) For j = LBound(hideupdates) To UBound(hideupdates) 'MsgBox hideupdates(j) if instr(1, update.Title, hideupdates(j), vbTextCompare) = 0 then 'Wscript.echo "No match found for " & hideupdates(j) else Wscript.echo "Hiding " & hideupdates(j) update.IsHidden = True end if Next Next Can someone please fix the code for me Thank you
May seem daft but does it have owt to do with the number in the brackets not matching the last entry which is number 22 Never seen the script before Probably not... It mentions line 43 ?
So here is the latest code I tried and still gives the error: Code: Dim hideupdates(21) hideupdates(0) = "KB2505438" hideupdates(1) = "KB2670838" hideupdates(2) = "KB2952664" hideupdates(3) = "KB2976978" hideupdates(4) = "KB2977759" hideupdates(5) = "KB2990214" hideupdates(6) = "KB3021917" hideupdates(7) = "KB3022345" hideupdates(8) = "KB3035583" hideupdates(9) = "KB3044374" hideupdates(10) = "KB3064683" hideupdates(11) = "KB3065987" hideupdates(12) = "KB3065988" hideupdates(13) = "KB3068708" hideupdates(14) = "KB3072318" hideupdates(15) = "KB3075249" hideupdates(16) = "KB3075851" hideupdates(17) = "KB3075853" hideupdates(18) = "KB3080149" hideupdates(19) = "KB3083324" hideupdates(20) = "KB3083325" set updateSession = createObject("Microsoft.Update.Session") set updateSearcher = updateSession.CreateupdateSearcher() Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'") For i = 0 To searchResult.Updates.Count-1 set update = searchResult.Updates.Item(i) For j = LBound(hideupdates) To UBound(hideupdates) 'MsgBox hideupdates(j) if instr(1, update.Title, hideupdates(j), vbTextCompare) = 0 then 'Wscript.echo "No match found for " & hideupdates(j) else Wscript.echo "Hiding " & hideupdates(j) update.IsHidden = True end if Next Next
I may just install Win 7 on my test machine and check this out. Just for a laugh... What version of Win 7 are you using ?
I will export pro from my image and test this out. I suppose this scrip should hide any updates, not just specific ones.
It is supposed to hide the updates that I specified in the script. When I run it I do see it saying hiding XXXX update but after that it throws in that line 37 error If you could also try running Windows update and see if it did actually hide those updates that are in the script you'd do me a huge favor.
I will see if it picks up those updates. This is an unmodified SP1 image so I am guessing it will need a bus load of updates. I was thinking of starting small, picking the very first update and trying that script to hide it. Then move on from there.
yes sure any update would do as a test if you can figure out what that error is! I really appreciate what you're doing mate. Thank you so much!
No worries fella. Thank me once we get it sorted...I just love messing Funny thing.. It has been that long since I messed with Win 7 I got errors at the install, wrong key. And I was adding a pro key. Forgot all about the "ei.cfg" file...It still had Ultimate info on it...
yep I know... I have my BIOS modded. I just add my own OEM folder. The ei.cfg file was the little problem. I was trying to install Pro with the Ultimate ei.cfg. I normally just delete that file altogether, but it has been so long I forgot.... Win 7 is in...HOW LONGGGGGGGGGGGGG to check for updates.. Must be two bus loads of them.. I am guessing you just saved that code as a .vbs file ? jeeeeeeeezzzz It's taking longer to check for updates than it was to install the darn thing.
Well I don't even seem to be able to call the .vbs file I saved a script as 1.vbs, placed into C:\ I opened command prompt, cd C:\ cscript C:\1.vbs Not sure if that is how to call a .vbs file but nothing happens at all. Can you tell me exactly what file extensions you are using and how you are doing it.... patients is a virtue I got a pop up window "Hiding" took 5 mins or so to pop up error.... Well you can just richt click on the .vbs file and "Open With Command Prompt"
yeah same here it takes a while for the script to actually appear on your screen but when it does, it hides a few updates then error.
I think that guy who originally made that script doesn't know what he's doing since I contacted him as well but he hasn't replied for many days. I need to find another script
It's a member on these forums named: cocachris89 This is the post: http://forums.mydigitallife.net/thr...om-Windows-7?p=1129378&viewfull=1#post1129378