Page 1 of 1 1
Topic Options
#40196 - 2003-05-16 12:16 AM Computer in a group
Anonymous
Unregistered


Win2K Server /Win2K Pro

Is there a way for kix to reconize computers that are in a group. I have put a test computer in a group and the following line doesn't work, but it will if the user is in the group

IF INGROUP("TestComputers")
DISPLAY "Yep that Works"
ENDIF

Thanks
John

Top
#40197 - 2003-05-16 12:25 AM Re: Computer in a group
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
you need to check OUs not groups for computers...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#40198 - 2003-05-16 12:56 AM Re: Computer in a group
Anonymous
Unregistered


Computer on our network need to be in more than 1 group so I can't use OU's, is there no way to find a computer in a group??

eg.

TESTPC1 is in "SoftwareInstall_AcroBat" & "SoftwareInstall_Winzip"

IF INGROUP("SoftwareInstall_AcroBat")
"Run Command"
ENDIF

IF INGROUP("SoftwareInstall_Winzip")
"Run Command"
ENDIF

Thanks
John

Top
#40199 - 2003-05-15 01:04 PM Re: Computer in a group
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Boy, this is getting redundant... [Wink] Just answered this same question yesterday again.

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=1;t=006516#000003
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#40200 - 2003-05-15 01:52 PM Re: Computer in a group
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I also thought about seeing this more than once...
_________________________
!

download KiXnet

Top
#40201 - 2003-05-15 01:53 PM Re: Computer in a group
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
To answer John's qquestion directly, there is no way to determine if a computer is in a group with InGroup(). InGroup does not have optional parameters and so only passes the @UserID silently.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#40202 - 2003-05-15 01:59 PM Re: Computer in a group
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
looks like your need to UDF it.

ComputerInGroup($group)

[ 15. May 2003, 13:59: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#40203 - 2003-05-15 02:02 PM Re: Computer in a group
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ahhh, and FAQ it ! [Wink]
Top
#40204 - 2003-05-15 03:34 PM Re: Computer in a group
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
No, we need build-in support for computers in the INGROUP() function. We already requested this and even provided a prototype function including backward compatibility. See Update INGROUP to include objects in the suggestions forum.
_________________________
There are two types of vessels, submarines and targets.

Top
#40205 - 2003-05-15 05:28 PM Re: Computer in a group
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
that would be nice, but until then...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#40206 - 2003-05-15 06:54 PM Re: Computer in a group
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Howard,

Can/would you create a UDF and some type of FAQ on it as well when you get a chance? You seem to have been the first to have written most of the code that deals with this so I think it would be fitting if you were to be the one to write this information up.
One request though is that it use LDAP not WINNT so that Universal groups are supported as well.

Thanks Howard

Top
#40207 - 2003-05-16 10:15 AM Re: Computer in a group
Anonymous
Unregistered


Howard

Apologies for not checking recent posts (it won't happen again). Have use your example (link below) and it does exactly what I want.
Thanks to you and others answering my question.

http://www.kixscripts.com/forum/tm.asp?m=581&p=1&tmode=1

Top
#40208 - 2003-05-16 02:18 PM Re: Computer in a group
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
John, no problem; happy to help.

DOC, I will see about building a comprehesive ComputerInGrp() UDF and well ad docs. Very busy at the moment though.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#40209 - 2003-05-18 09:00 AM Re: Computer in a group
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Okay, Thanks Howard. I'm sure many will appreciate it.
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 1110 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

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

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