List of users to list of computer names

Hi all,

I have a list of users that I need to turn into a list of computers immediately. While I would normally base this on an AD Group and wait for it to populate, I need to push an action immediately. Is there a good way to take a list of users and turn it into a list of their associated computers?

Can you target based on their AD names? There are AD user inspectors that you could code up if you know their distinguished names

http://support.bigfix.com/inspectors/Directory%20Services_Any.html

That is effectively what I am doing with the Automatic AD group, but it takes long time for the recently added AD group to populate.

Can I write a relevancy with a list of user names to find their associated computer?

I know I can do something like this:

exists true whose (if true then (not exists (if exists true whose (if true then exists logged on user else false) then names of logged on users else if exists current user then name of current user else "<none>") whose (it as string as lowercase contains "ejackson" as lowercase)) else false)) 

But I have a list of 60 users and it is very tedious to do it this way. Can I comma seperate the usernames in this manner?

1 Like

This is simplistic but you can do something like:

q: exist (it = (name of current user)) of ("myusername"; "junk")