header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

We have a new sponsor!  Introducting Pragma Systems.  See the home page for details.

joining objects into one
Last Post 01 Mar 2010 11:04 PM by Cruisader03. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
chrisjUser is Offline
New Member
New Member
Posts:1
Avatar

--
22 Feb 2010 11:44 PM  

In a nutshell what I need to do is join objects with matching property values into one object.  This might be something simple but I cannot seem to find the answer.

A bit more detail:
I have an array of objects which are populated via AD, I then need to read eventviewer and populate data about these objects.  Currently I have to do a foreach through the adobjects which creates a new wmi query for each object, scans eventviewer and grabs the data it wants.  Doesn't sound like good programming to me (over 100 objects in the ad array).  What I was thinking I need to do is read eventviewer once putting the results into an array of objects then match a field from the eventviewer with the field from AD.  The only way I know how to do this is a nested foreach loop which also sounds like fairly bad programming.

Any thoughts? thanks in advance.

Cruisader03User is Offline
Basic Member
Basic Member
Posts:243
Avatar

--
01 Mar 2010 11:04 PM  
you should be able to read the event log into an object, then parse through the object. could you paste your code?
When at first you don't succeed Step-Into

http://theposherlife.blogspot.com
http://www.jandctravels.com

You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 footer
footer