Page 1 of 1 1
Topic Options
#129191 - 2004-11-09 10:15 PM @function to determine OU of user and/or workstati
kmurphy Offline
Fresh Scripter

Registered: 2000-04-21
Posts: 15
Loc: Nashua, NH USA
I believe it would be useful to be able to query the fully qualified OU of the current user and/or workstation.

Especially the workstation because I could them put certain computer names into a special OU and if that matches what this proposed @function returns, then the script could diverge appropriately.
_________________________

Thanx,
Kevin Murphy

Top
#129192 - 2004-11-10 04:13 AM Re: @function to determine OU of user and/or workstati
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
TranslateName() UDF does this for you.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#129193 - 2005-01-13 03:49 AM Re: @function to determine OU of user and/or workstati
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Combine with InContainer() UDF to make branching decisions based on OU.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#129194 - 2005-01-13 04:04 AM Re: @function to determine OU of user and/or workstati
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
InContainer() does not differentiate at what level of OU nesting the object resides. Granted, one can take the TranslateName() UDF and parse through the DN to determine where on the tree the object resides.

If there were a macro to do this, it should probably work like the @IPAddressX macro whereby the X denotes the position.
_________________________
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:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 718 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.055 seconds in which 0.024 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