Mike1982
(Fresh Scripter)
2007-07-17 08:09 PM
ComputerinGroup issues

I am trying to use the Function ComputerInGroup. I have the following structure in AD. Domain Computers with OU's under that by location. EX. Under Domain Computers I have an OU with the name "Phoenix" I can get the function to match if I use "Domain Computers", but not "Phoenix". What can I do to make it see the OU's in different levels?

Les
(KiX Master)
2007-07-17 09:03 PM
Re: ComputerinGroup issues

Show some code and the real LDAP strings, not bogus crap.

Mike1982
(Fresh Scripter)
2007-07-18 01:50 AM
Re: ComputerinGroup issues

What bogus crap? Why don't you lose the attitude. If you don't have any useful info, then don't bother to respond. FYI I am using the following code:
INCLUDE "Function_ComputerInGroup.kix"

If ComputerInGroup('PHOENIX')=1

MESSAGEBOX ("Matched", "OU Membership", 48, 60)
else
MESSAGEBOX (@hostname + " Not a member", "OU Membership", 48, 60)
endif

Which is exactly how I stated.


Les
(KiX Master)
2007-07-18 02:20 AM
Re: ComputerinGroup issues

Who has the attitude? I didn't say you posted crap, I simply asked you not to. Many feel the need to obfuscate by posting bogus info in place of the real code and it can complicate things.

Now, you say:
 Quote:
Under Domain Computers I have an OU with the name "Phoenix"
Do you also have a group called "Phoenix"?

If you are looking to see if a computer is in a container such as an OU, you should be using the InContainer() UDF.

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=83022