here is a ESXI 4.1 update script
How To use the script:
-download and unzip the update file
-locate the metadata.zip and place that in a sub folder of the datastore you configure in the script
-run script
this script has:
-remote ESXI Login (fixed of 4.0.1)
-user name prompted
-password prompted
-in a encrypted way
-file install from a Datastore
-promps for user to put esxi into manance mode
-adds a switch/loop so that the script can have new things added to it easily.
(known issues)
but when you run the script it crashs powershell but shows the progress in the vi client (64 bit of power cli only)