Page 1 of 1 1
Topic Options
#163815 - 2006-06-29 04:54 AM Script based on OU
dbortunk Offline
Fresh Scripter

Registered: 2001-05-18
Posts: 36
Loc: USA
I have been using kixtart for years and I have 5 sites each with a different kix script. I would like to combine all the scripts in one and run them based on OU membership. IS there a way to do this?
Top
#163816 - 2006-06-29 08:53 AM Re: Script based on OU
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Yes there are lots of examples on the board.

To get you started, here is the simplest way that I know of getting your user / computer path. You can then use InStr() or something similar to determine if it is in the OU that you are interested in:
Code:
$=SetOption("WrapAtEOL","ON")

$oADInfo=CreateObject("ADSystemInfo")
"User : "+$oADInfo.userName+@CRLF
"Computer : "+$oADInfo.computerName+@CRLF


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 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.049 seconds in which 0.023 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