Change the datastore_name to the name of the datastore on your setup
cd /vmfs/volumes/<DATASTORE_NAME>
find ./ -name *.vmx |while read in; do echo $in | sed 's:.:'`pwd`':'; done | while read full; do echo "Attempting to register " $full; vim-cmd solo/registervm $full; done