Observations:
1. In Vista while executing this code a process "WbemPrvSE" process with
User Name "Network services" gets added in the task manager. As I am querying
for every 5secs handles and memory of the process is increasing. At some
point of time it is reaching a value higher than 4096 handles. During this
time the process is getting closed and restarted. In EventVwr I see
"WMI has stopped WMIPRVSE.exe because a quota reached a warning value.
Quota: HandleCount value:4169 Maximum value: 4096 WMIPRVSE: 2756".
Mostly during this I am getting shutdown error.
2. I used WbemTest.exe tool in vista just to verify if the memory and
handles get increased each time I make Win32_QuickFixEngineering query. I see
they get increased whenever I execute the query.
3. Also, form Command prompt I used WMIC tool to verify the same. When ever
I execute "qfe get hotfixid" i observe memory and handles of "WbemPrvSE.exe"
process increases.
Please kindly help me in resolving this problem.