preload

Active Directory – Sample Scripts

Disclaimer

All the content referenced below does not copy or represent a commercial solution. This is a collection of ideas and implemented concepts, research and investigations results. If you use it, you use it at your own risk.

Copyright

Please make sure you have read, understood, and agreed with Copyright and Content policy.

Unauthorized use and/or duplication of materials from this blog without express and written permission from this blog’s author and owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Albert Gareev with appropriate and specific direction to the original content.

Unless otherwise stated, all code examples, functions, function libraries, workarounds, etc. are created by Albert Gareev, and are copyrighted.

You may use them to design, develop and test your own software. You may modify the original source code as you need.

However, you must ensure that full and clear credit is given to Albert Gareev with an appropriate and specific direction to the original content. If your Employer’s policies restrict that then you may not use the source code provided.


Basic Active Directory Queries

How to retrieve Organizational Unit

How to retrieve User Account

How to retrieve Security Group


Working with Active Directory Objects

How to create User Account

How to create Security Group

How to modify Attributes of an Object


Advanced Active Directory Queries

Processing Security Group Membership for User Account

Search for User Account in Organizational Units


Tricks and tips

A little trick for fail-safe automation

Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.