Hi Guys,
If you want to change the expiration date of all the domains in Plesk to unlimited, you can either do it from Plesk frontend and of course it will be time consuming. So here is a script for that.
for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e “select name from domains”`; do /usr/local/psa/bin/domain_pref -u $i -expiration -1;done
It will do the trick!
Give it a try!