In the end, I'd like to tell, that with my patched wpkg.js I can now write hosts.xml very effectively. On LAN with 50 computers and 551 users I use hosts.xml with only 7 nodes. Every new computer or user I create only in MS Active Directory. Not in hosts.xml. Here is my hosts.xml: <wpkg> <host ou="Computers" profile-id="Computers"/> <host name="PC-Biology" profile-id="SMARTBoard"/> <host ou="Computers" usergroup="Domain Users" profile-id="Domain Users on Computers"/> <host ou="Computers" usergroup="Teachers" profile-id="Teachers on Computers"/> <host ou="Computers" usergroup="Students" profile-id="Students on Computers"/> <host ou="Computers" username="Administrator" profile-id="Administrator on Computers"/> <host ou="Computer classroom" usergroup="Domain Users" profile-id="Domain Users on Computer classroom"/> </wpkg> I start wpkg.js three times - at startup, logon and logoff. I do it using a GPO with these three scripts: -startup script: cscript %WPKGROOT%\wpkg.js /synchronize /applymultiple /config:%WPKGROOT%\configs\config-startup.xml -logon script: cscript %WPKGROOT%\wpkg.js /synchronize /applymultiple /config:%WPKGROOT%\configs\config-logon.xml -logoff script: cscript %WPKGROOT%\wpkg.js /synchronize /applymultiple /config:%WPKGROOT%\configs\config-logoff.xml I don't use WPKG Client. Here are examples of my config files: config-startup.xml: <config> <param name='profiles_file_name' value='profiles-startup.xml' /> </config> config-logon.xml: <config> <param name='profiles_file_name' value='profiles-logon.xml' /> <param name='settings_file_path' value='%userprofile%\local settings' /> <param name='settings_file_name' value='wpkg-%username%-logon.xml' /> <param name='log_file_path' value='%userprofile%\local settings' /> <param name='logfilePattern' value='wpkg-%username%-logon.log' /> </config> config-logoff.xml: <config> <param name='profiles_file_name' value='profiles-logoff.xml' /> <param name='settings_file_path' value='%userprofile%\local settings' /> <param name='settings_file_name' value='wpkg-%username%-logoff.xml' /> <param name='log_file_path' value='%userprofile%\local settings' /> <param name='logfilePattern' value='wpkg-%username%-logoff.log' /> </config> Here are examples of my profile files: profiles-startup.xml: <profiles> <profile id="Computers"> <package package-id="Office2003SP3(startup)" /> </profile> <profile id="SMARTBoard> <package package-id="SMARTBoardDriver10(startup)" /> </profile> </profiles> profiles-logon.xml: <profiles> <profile id="Domain Users on Computers"> <package package-id="ImportOfficeProfile(logon)" /> </profile> <profile id="Teachers on Computers"> <package package-id="Thunderbird(Teachers)(logon)" /> <package package-id="Skype(logon)" /> </profile> <profile id="Students on Computers"> <package package-id="Thunderbird(Students)(logon)" /> </profile> <profile id="Administrator on Computers"> <package package-id="IEDefaultSearchProvider(logon)" /> </profile> <profile id="Domain Users on Computer classroom"> <package package-id="SetPrinter(logon)" /> </profile> </profiles> profiles-logoff.xml: <profiles> <profile id="Students on Computers"> <package package-id="CCleaner(logoff)" /> </profile> </profiles> |