You can use a searchroot to restrict the search to a single group of OUs. This is where you need to really think abut overall design. You can load 1000 or more objects in a couple of seconds.
Listing specific OUs for context menu
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Listing specific OUs for context menu
- StillLearning
- Posts: 39
- Last visit: Tue Apr 10, 2018 9:39 pm
Re: Listing specific OUs for context menu
I’m not sure how you’re confused, I’ve basically said what I want to do multiple times and even provided a PSF that has zero downloads.
I’m sorry you’re unable to comprehend that I just want to display some OUs
Why make it harder you ask...
I want to know how to do this dynamically
I unfortunately don’t learn by reading and reading and reading, I actually need to see a similar result before the lightbulb goes off. While the examples you provided are great and very cool it’s not what I need this time.
I’m sorry you’re unable to comprehend that I just want to display some OUs
Why make it harder you ask...
I want to know how to do this dynamically
I unfortunately don’t learn by reading and reading and reading, I actually need to see a similar result before the lightbulb goes off. While the examples you provided are great and very cool it’s not what I need this time.
- StillLearning
- Posts: 39
- Last visit: Tue Apr 10, 2018 9:39 pm
Re: Listing specific OUs for context menu
Search root for specific OUs. That gets me started as the OUs I need are nested inside other OUsjvierra wrote: ↑Tue Mar 20, 2018 5:25 pmYou can use a searchroot to restrict the search to a single group of OUs. This is where you need to really think abut overall design. You can load 1000 or more objects in a couple of seconds.
Like stated in my OP
Re: Listing specific OUs for context menu
Then just add that and you are set. I gave you a general example. It was not intended to be a solution.StillLearning wrote: ↑Tue Mar 20, 2018 5:44 pmSearch root for specific OUs. That gets me started as the OUs I need are nested inside other OUs
Like stated in my OP
Re: Listing specific OUs for context menu
Here is the documentation for the adsisearcher. There are numerous examples of how to use it.
https://msdn.microsoft.com/en-us/librar ... .110).aspx
https://msdn.microsoft.com/en-us/librar ... .110).aspx
Re: Listing specific OUs for context menu
This will also be helpful as you move forwards: https://www.codeproject.com/Articles/18 ... tory-via-C
- StillLearning
- Posts: 39
- Last visit: Tue Apr 10, 2018 9:39 pm
Re: Listing specific OUs for context menu
Thank you! Lots of new information for me to work through.
- StillLearning
- Posts: 39
- Last visit: Tue Apr 10, 2018 9:39 pm
Re: Listing specific OUs for context menu
.
Last edited by StillLearning on Sun Mar 25, 2018 7:28 am, edited 2 times in total.
- StillLearning
- Posts: 39
- Last visit: Tue Apr 10, 2018 9:39 pm