Page 1 of 1 1
Topic Options
#178017 - 2007-07-17 08:09 PM ComputerinGroup issues
Mike1982 Offline
Fresh Scripter

Registered: 2007-06-15
Posts: 6
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?
Top
#178020 - 2007-07-17 09:03 PM Re: ComputerinGroup issues [Re: Mike1982]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Show some code and the real LDAP strings, not bogus crap.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#178032 - 2007-07-18 01:50 AM Re: ComputerinGroup issues [Re: Les]
Mike1982 Offline
Fresh Scripter

Registered: 2007-06-15
Posts: 6
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.

Top
#178034 - 2007-07-18 02:20 AM Re: ComputerinGroup issues [Re: Mike1982]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.047 seconds in which 0.021 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org