I currently have a set of administrative tasks I need to automate and hope to be able to perform them in VBScript. The tasks are as follows:
1-Create an Organizational Unit
2-Apply a default Group policy
3-Set the policies folder redirect locations
4-Create a user group
5-Create users and add to group(Have this working)
I am relatively new to VBScript and ADSI and have been having trouble finding the right documentation.
First I would like to know if all these tasks(1-4) can be achieved via ADSI and VBScript?
Second, I need some example code performing these tasks?
Third, some references to documentation outlining the ADSI objects, methods and attributes for OU, Group, Policy. I found the msn doc's for ADSI User object http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ad/ad/organizational_unit_user_interface_mapping.asp
but it doesnt reference the handy methods like setPassword, where are these methods documented?