Page 1 of 1 1
Topic Options
#190088 - 2008-10-09 09:05 PM Different domain question
Mark_B Offline
Just in Town

Registered: 2008-10-09
Posts: 1

I have a situation in my forest. In the child domain that I admin we use Kixtart 2001. It's worked very well for us for many years. We now have a problem that I don't know if Kixtart has an answer for.

Here's our situation. In our script we have several programs that shell out to a batch file and try to install an application if it doesn't exist, basically and if, then statement in a batch file. One example is McAfee. This works great until a user from my domain (domain a)logs onto a workstation that belongs to the other organizations workstation (domain B) that we share the forest with. My script runs when the "domain a" user logs onto the workstation. They don't want this application on "domain B's" workstation, but since workstations are shared among the two organizations this is the result. Is there a way to check for the domain membership of the computer prior to running the entire script?

In addition we will have portable tablets that will be used by both organizations. They don't want the script to run on the portable's at all, but still want the script to run for the user if they are not using the tablet and are logging into thier normal computers at thier desk.

I hope I provided enough information and clarity. Any help or suggestions would be much appreciated. Thanks in advance.

Top
#190090 - 2008-10-09 09:50 PM Re: Different domain question [Re: Mark_B]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
If I understand you correctly, I think ComputerInGroup() will help. You can find it here: http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=84539
Top
#190308 - 2008-10-24 03:51 PM Re: Different domain question [Re: Allen]
Shaun_Hill Offline
Getting the hang of it

Registered: 2004-11-15
Posts: 50
Loc: JHB, South Africa
If my memory servers me well, you could also just check whats returned from @DOMAIN and @LDOMAIN

@DOMAIN is the domain where you computer account resides.
@LDOMAIN is the domain you logged on to.

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
1 registered (Allen) and 781 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.135 seconds in which 0.108 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