header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
joining objects into one
Last Post 01 Mar 2010 03:04 PM by PoSherLife. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
chrisUser is Offline
New Member
New Member
Posts:1
Avatar

--
22 Feb 2010 03: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.

    PoSherLifeUser is Offline
    Basic Member
    Basic Member
    Posts:364
    Avatar

    --
    01 Mar 2010 03: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.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer