Admin-Ahead Community

Linux => Control Panels => Plesk => Topic started by: Jithin on November 29, 2013, 06:59:02 pm

Title: Script to change expiration period of all domains to unlimited
Post by: Jithin on November 29, 2013, 06:59:02 pm
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!