Changes

WPKG with Active Directory

30 bytes removed, 09:58, 9 August 2011
m
The python cron was in the vb script section. now fixed.
l.unbind_s()
</source>
== 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>
 
= Pulling workstation names to hosts.xml from Active Directory OUs automatically with vbScript=
</source>
== Scheduling the script ==
=== Scheduled Task (Windows) ===
On your server click: Start > Programs > Accessories > Systems tools > Scheduled Tasks
In 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:
</wpkg>
</source>
== Scheduled Task (Windows) ==
On your server click: Start > Programs > Accessories > Systems tools > Scheduled Tasks
In 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
[[category:Documentation]]
[[category:Installation]]
73
edits