In ADSI Scripting: TFM, Cade Fassett breaks down ADSI scripting, exposing its complete functionality with plenty of real-world examples, incredibly detailed. Finally, everything you need to know about ADSI Scripting, all in one, definitive volume. This is the VBScript-oriented, comprehensive reference. ADSI Scripting: TFM by Cade Fassett and a great selection of similar Used, New and Collectible Books available now at
|Published (Last):||10 June 2017|
|PDF File Size:||10.32 Mb|
|ePub File Size:||4.79 Mb|
|Price:||Free* [*Free Regsitration Required]|
The online docs can be found here.
Posted on February 19, SharePoint Watch Sign up for our newsletter. However, when I used that value, Active Directory turned the account really into a user and set its primary group membership to Domain Users. I do wish ADSI were better documented from a scripting point of view.
The solution was to set the UserAccountControl to a machine based value of either or Want to work with open resources?
This will list all its properties and methods. Don is also scirpting co-founder and President of PowerShell. Instead, I was using a user based value for the UserAccountControl. If the account was to be enabled the original version was setting that value to In Windows PowerShell 2.
For now, Microsoft’s version will have to do.
Using these values the created account ended up in Domain Computers. Better ADSI documentation is coming.
Active Directory Service Interfaces Scripting
I was simply taking a shortcut. Hurry up with that book, Cade.
Click on IADsResources and you’ll finally see that open dcripting have a name, lock count, path, user, user path and other properties. TFMI wrote a short chapter on managing directory services.
While a computer account is derived from the user object, there are some subtle distinctions I overlooked. Let’s say you’re interested in the FileService class.
ADSI Scripting: Tfm – Cade Fassett – Google Books
Click on that and you learn that it’s a collection of IADsResource interfaces. After a little digging I realized my mistake. Don has more than two decades of ads in the IT industry, and specializes in the Microsoft business technology platform.
A note says, “To access active sessions or open resources used by the file service, you must go through the IADsFileServiceOperations interface to retrieve sessions or resources.