#155764 - 2006-01-22 12:18 AM
InContainer question
|
nazgul
Fresh Scripter
Registered: 2006-01-21
Posts: 11
|
Hello,
Ive been searching the forums a couple of hours now but I havent found an answer to my question so here goes.
lets say I have this: if not InContainer('OU=Servers,OU=Machines,DC=ORG', 'Computer')[0]
Does that mean that it should look in my AD for an OU named Servers and then look for an OU inside that called Machines?
So that the AD would look like in this example:
ORG -Machines(OU) -Servers(OU)
And ofcause the last parametre states that we are looking for an Computer.
Did I get this right?
Btw Im converting some Desktop Authority to Kix scripts and is there a list of what the different validations are? Ie. /W=FOO (For adding network printers)
Thanks in advance.
|
|
Top
|
|
|
|
#155766 - 2006-01-22 10:16 AM
Re: InContainer question
|
nazgul
Fresh Scripter
Registered: 2006-01-21
Posts: 11
|
Umm isnt it DC=foo where foo is the name of your domain controller?`
|
|
Top
|
|
|
|
#155767 - 2006-01-22 02:00 PM
Re: InContainer question
|
nazgul
Fresh Scripter
Registered: 2006-01-21
Posts: 11
|
lets say i have
FOO.ORG ----Department(UO) --------Department Users(UO)
Then to check if the user is in the Department Users UO I would do this:
InContainer('OU=Department Users,OU=Department,DC=FOO,DC=ORG', 'Computer')[0]
Is this correct?
How would the check be if I wanted to check if the user or machine that is logging in is in that UO?
Thanks in advance
|
|
Top
|
|
|
|
#155768 - 2006-01-22 02:06 PM
Re: InContainer question
|
nazgul
Fresh Scripter
Registered: 2006-01-21
Posts: 11
|
oops Computer would have to be User in that example
|
|
Top
|
|
|
|
#155771 - 2006-01-22 03:14 PM
Re: InContainer question
|
nazgul
Fresh Scripter
Registered: 2006-01-21
Posts: 11
|
Im not intrested in installing different programs such as Kixforms just to get a simple question regarding parameters of a function answered. (Im working at home today so I cant run it ).
|
|
Top
|
|
|
|
#155773 - 2006-01-22 03:32 PM
Re: InContainer question
|
nazgul
Fresh Scripter
Registered: 2006-01-21
Posts: 11
|
Im writing it in notepad and I havent tested it yet, I just wanted to get the paremeters correct before even trying to see if it works..
Thanks
|
|
Top
|
|
|
|
#155776 - 2006-01-22 03:54 PM
Re: InContainer question
|
nazgul
Fresh Scripter
Registered: 2006-01-21
Posts: 11
|
I get it now, thanks
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 581 anonymous users online.
|
|
|