I found following scripts and tips useful:
http://benincosa.org/blog/?p=266
http://www.virtuallyghetto.com/2010/09/automating-esxi-41-kickstart-tips.html
http://vinternals.com/esxi-mastery/
http://www.vi-toolkit.com/wiki/index.php/Main_Page
http://www.vm-help.com/esx40i/manage_without_VI_client_1.php