Changes

WPKG with Active Directory

381 bytes added, 09:52, 9 August 2011
m
Pulling workstation names to hosts.xml from Active Directory OUs automatically with vbScript
Wscript.Echo "Finished..."
</source>
 == Scheduling the script ===== Scheduled Task (Windows) ===On your server click: Start > Programs > Accessories > Systems tools > Scheduled TasksIn the scheduled tasks window create a new task to run:<source lang="dos">cscript \\myserver\wpkg$\ADHostExport.vbs</source>replace '''\\myserver\wpkg$''' with the path to your wpkg folder=== Cron entry (linux) ===
You can start it every hour via cron on your Linux system:
<source lang="dos">
# generate hosts.xml from AD
01 * * * * root python /opt/ldap-wpkg.py &>/dev/null
</source>
== Multiple Profile Method ==
Alternatively if you want hosts listed with each OU they reside within '''separately''' to allow you to apply software to the higher level OUs, this should do the trick:
73
edits