Making global configuration changes to cPanel sites


Sep 30, 2009
Is it possible, either in WHM or through the use of a command-line script, to make global configuration changes across all sites on a cPanel server?

For example, I want to enable the "Archive Logs in your home directory at the end of each month" configuration setting for every site I have hosted on my server. The only way I see of doing that is to go through each site individually in WHM, log into that site's cPanel, and make the change manually -- a tedious bit of work on a server with several hundred sites.

Any thoughts?