Question

Q: XP - Error: WshNetwork.EnumNetworkDrives (Caused by KB982802 and KB2360937) This thread is locked from future replies

After installing update KB982802 the following code no longer works

 Set WshNetwork = WScript.CreateObject("WScript.Network")
 Set oDrives = WshNetwork.EnumNetworkDrives

specifically EnumNetworkDrives

It crashed with error code 800706C6 The array bounds are invalid.

Can anyone help?

Thanks Dave

P.S. tried to post this under XP but the windows updates link on the XP forum brings you here to the windows 7 forum!?!?

Answer

A:

KB980802 is an Important (not a Critical) update for WinXP. If you've decided not to (re)install it, you may need to hide it so that Automatic Updates doesn't install it again.

1. Stop the Automatic Updates service:

Start > Run > (type in) services.msc > [OK]
Double-click Automatic Updates > Click on Stop
(Stopping the service will take a moment)

2. Delete the contents of the Download folder:

Start > Run > (type in) %windir%\SoftwareDistribution > [OK]
Open the Download folder and delete its contents
Close the window.

3. Go to Windows Update website | Select CUSTOM and allow the scan to complete | Uncheck/deselect KB980802 and hide it ("Don't show me this update again").

4. Start the Automatic Updates service:

Start > Run > (type in) services.msc > [OK]
Double-click Automatic Updates > Click on Start
(Starting the service will take a moment)


~Robear Dyer (PA Bear) ~ MS MVP (IE, Mail, Security, Windows & Update Services) since 2002 ~ Disclaimer: MS MVPs neither represent nor work for Microsoft
--
~Robear Dyer (PA Bear)
Microsoft MVP (Windows Client) since October 2002

Did this solve your problem?

Sorry this didn't help.

2 people were helped by this reply

Answer

A:

I experienced this same problem.

After installing KB982802 on Windows XP then objNetwork.EnumNetworkDrives does not work but only IF there is a mapped up drive to a Sharepoint site or if a Sharepoint site has been added to "My Network Places". If I remove the mapping to the Sharepoint site the problem disappears. If I remove the Sharepoint site from "My Network Places" then I have to reboot to get rid of this problem. There could of cause be other situations where this problem arises but in my case I could link this directly to mapping drives to Sharepoint site.

Also the "Net use" command returns an error:

"C:\>net use
System error 1734 has occurred.

The array bounds are invalid."

Note that this is the same error as if objNetwork.EnumNetworkDrives is used, "The array bounds are invalid.".

I managed to rewrite my logins script where I used objNetwork.EnumNetworkDrives by using Set Drives = objFSO.Drives and DiskDrive.DriveLetter and DiskDrive.ShareName but this is clearly a bug in KB982802 that needs to be fixed by Microsoft.

It's not a solution to remove this patch from all Windows XP workstations.

Did this solve your problem?

Sorry this didn't help.



 
Question Info

Views: 11838 Last updated: January 16, 2018 Applies to: