Ich musste einige AD Tools für die Firma skripten und dachte mir, dass sie auch für andere von Nutzen sein könnten:
- AD Computer Account Creator.au3 v0.91 Build 2011-09-19 beta
- AD Object Mover.au3 v0.91 Build 2011-09-19 beta
- AD User Account Creator.au3 v0.91 Build 2011-09-19 beta
- AD User ID Attribute Remover.au3 v0.91 Build 2011-09-19 beta
- AD User-Computer to Group v0.91 Build 2012-01-06 beta
Hier eine Beschreibung der Tools, allerdings in Englisch. Wenn ich Zeit finde, werde ich den Text ins Deutsche übersetzen.
Spoiler anzeigen
Short information about the AD tools
The delimiter character within the text file of all tools listed below is always the pipe char '|'.
OUs are usually in distinguished name format, User IDs in sAM account name format.
Each tool creates its own log file where you can read more detail about it.
If log file exceeds the 10MB size limit a new log file created and the old log file will be renamed to
YYYYMMDDHHMMSS_.au3 whereas the YYYYMMDDHHMMSS is the last modified
date stamp of the file.
1. AD Computer Account Creator.au3
creates computer accounts in AD.
You have to load a text file with following content: : |
Example:
Computer4|OU=Computers,OU=VM,DC=UEZ,DC=local
Computer5|OU=Computers,OU=VM,DC=UEZ,DC=local
Computer6|OU=Computers,OU=VM,DC=UEZ,DC=local
Computer7|OU=Computers,OU=VM,DC=UEZ,DC=local
Computer8|OU=Computers,OU=VM,DC=UEZ,DC=local
Computer9|OU=Computers,OU=VM,DC=UEZ,DC=local
Computer10|OU=Computers,OU=VM,DC=UEZ,DC=local
2. AD Object Mover.au3
move an object from source OU to a destination OU.
You have to load a text file with following content: |
Example:
Computer10$|OU=Computers,OU=Win7,DC=UEZ,DC=local
Test1|OU=Users,OU=Win7,DC=UEZ,DC=local
Remark: if you want to move a computer account don't forget the $ at the end of the computer name!
3. AD User Account Creator.au3
creates user id accounts in AD at specified OU.
You have to load a text file with following content: ||||||||||
The tokens marked in red are mandatory. Also you must enter a default password with minimum of 8 characters length to proceed!
The flag "User must change password..." will be set automatically.
Example:
uez|OU=Users,OU=Win7,DC=UEZ,DC=local|First Name|Last Name|+49123456789|City|Street
4. AD User ID Attribute Remover.au3
removes attributes from the user id in AD.
You have to load a text file with following content:
Example:
User1
User2
User3
User4
Just select the attributes which should be removed from user's id.
5. AD User-Computer to Group
adds the user id or the computer account to a group.
You have to load a text file with following content: |
The groups are separated by a comma!
Example:
Computer10$|Group1,Group3
User1|Group2,Group4
Remark: computer names must have the $ suffix
Für die Skripte wird die Active Directory UDF von Water benötigt! Vielen Dank dafür !
Kompilierte Versionen: 4shared.com / MediaFire.com
Bei Bugs bitte hier melden!
Gruß,
UEZ