Since the latest Windows update (creators-update, winver
gives 1703, build 15063.483) we have problems with VBScript accessing COM objects. It just seems to consume memory until memory exceeds.
We already have checked our sources and made it to just one simple vbs file that uses the FileSystemObject
.
Look at this simple script file:
Dim fso, folder
Set fso = CreateObject("Scripting.FileSystemObject")
If Not fso Is Nothing Then
Do
Set folder = Nothing
Set folder = fso.GetFolder("C:\Users")
Loop
Set folder = Nothing
Set fso = Nothing
End If
It does just nothing but hanging in that loop, but if O look at the Task Manager I see the process wscript.exe
consuming memory.
This doen only happen on Windows 10 systems with the creators update installed.
Any hints whats going wrong? Maybe a bug anywhere in the VBScript engine?