How to show part of the AD Users and Computer in the Tree

N

NWTEST

I delegated an OU to a regional site.

I want to achieve two things:

- Make sure that when my OU manager open the AD Users and
Computers tree it will only show the local DC and nothing
else.( I have 5 DCs)
- I dont want to show the entire tree, in short only the
particular OU and hide the rest.
Please assist to achieve this things
 
H

Herb Martin

I don't personally use them but investigate "Task Pads" as a feature
of the MMC.
 
J

Jimmy Andersson [MVP]

Sounds like you want list object mode in AD.

By default, AD does not restrict listing objects in the directory. In a
traditional deployment such as for an enterprise, allowing users to list and
read the contents of the directory is normal and expected. However, because
there are stringent requirements for isolating subscriber information in a
shared directory, you need to perform a extra steps to prevent users from
reading or listing the contents of the parts of the directory each user
should not be able to access, to do this you set List Object Mode.

In order to do that you manually change the dsHeuristics value to 001 with
ADSI Edit or via the script below.

<snip>
Set oRootDSE = GetObject("LDAP://RootDSE")
configObjectDN = "LDAP://CN=Directory Service,CN=Windows NT,CN=Services,"
configObjectDN = configObjectDN & RootDSE.Get("configurationNamingContext")
Set configObject = GetObject(configObjectDN)
GetHeuristics
WScript.Echo "old heuristics: " & heuristics
newHeuristics = Left(heuristics, 2)
newHeuristics = newHeuristics & Left("00", 2-Len(newHeuristics))
newHeuristics = newHeuristics & "1"
WScript.Echo "new heuristics: " & newheuristics
If Len(heuristics) > 3 Then
newHeuristics = newHeuristics & Right(heuristics, Len(heuristics)-3)
End If
' WScript.Echo "new heuristics: " & newHeuristics
configObject.Put "dSHeuristics", newHeuristics
configObject.SetInfo

Sub GetHeuristics
On Error Resume Next
heuristics = configObject.Get("dSHeuristics")
If Err Then
If Err.Number = &H8000500D Then
' no error -- the dSHeuristics attribute was just unset
heuristics = ""
Else
WScript.Echo Err.Description
WScript.Quit(1)
End If
End If
End Sub
<snip>

See the Shared Web Hosting Guide for more information.

Regards,
/Jimmy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top