All Forums >> [Scripting] >> WSH & Client Side VBScript >> Win32 Classes - Quicker / better way than what I'm doing??? Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Hi. I'm trying to figure out a quick & efficient way of recording all WMI Win32 Classes and Properties to an xml file called "Registrations.xml"
The only problem is this is taking me far too long. Far too long to write all this code out in the way that I'm doing. There has to be a faster way??? Heres what I've done so far ::
BTW. The code works fine. So save it in a .hta and test it out!
Please don't forget to give me some feedback guys. Cheers
Posts: 2670
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
.... 1. You can connect to WMI once and use that same connection to query more than one WMI class 2. Win32_Account....this class will take a long time...especially if you are in a domain and if you end up calling it 7x like in your script....if you really need this data....collect once and loop through the same collection 7x instead of querying 7x and getting different bits of data each time 3. With something that can potentially take a long time...you may want to add a progress bar