Welcome to Powergui.org - an open source community for Windows Powershell

PowerGUI.org PowerGUI.org and blogs

Forums » PowerGUI Challenge

Thread: Set Domain root

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: Dec 10, 2012 10:23 PM by: Demi2012
wguijt_765

Posts: 1
Registered: 8/10/11
Set Domain root
Posted: Aug 10, 2011 5:58 AM
 
  Click to reply to this thread Reply

I'm a newbe regards powershell and the PowerGUI.

Can one of you tell me how i can change the default search settings of the AD environment.

For example:

When i now search for a list off our groups, I want only search witin my own OU, and not in the hole AD.

When I set a filter, he still searc the hole domain.

I want only info from my own OU, and not the info off all above.




Shay Levy


Posts: 2,567
Registered: 1/31/08
Re: Set Domain root
Posted: Aug 10, 2011 6:12 AM   in response to: wguijt_765
 
  Click to reply to this thread Reply

Pass the DN/CanonicalName of the of OU to the SearchRoot parameter


Shay Levy [MVP]
http://PowerShay.com
PowerShell Toolbar
Demi2012

Posts: 6
Registered: 12/10/12
Re: Set Domain root
Posted: Dec 10, 2012 10:23 PM   in response to: wguijt_765
 
  Click to reply to this thread Reply

SearchRoot change works here


toronto photographer
Legend
MVP: 2501 + pts
Guru: 2001 - 2500 pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums