これが直接機能しない場合は、開始する必要があります。
<?php
ini_set('display_errors',true);
include 'app/Mage.php';
Mage::setIsDeveloperMode(true);
Mage::app();
$coll = Mage::getResourceModel('customer/customer_collection');
// or $coll = Mage::getModel('customer/customer')->getCollection();
/* @var $coll Mage_Customer_Model_Resource_Customer_Collection */
/* or Mage_Customer_Model_Entity_Customer_Collection < CE1.6 */
$coll->addFieldToFilter('group_id',4);
/*
* Use the SPL IteratorAggregate implementation of Magento collections.
* @var $customer Mage_Customer_Model_Customer
* @see Mage_Adminhtml_CustomerController->saveAction()
*/
foreach ($coll as $customer) {
$customer->setForceConfirmed(true);
$sendPassToEmail = true;
$customer->setPassword($customer->generatePassword());
$customer->save();
$customer->sendNewAccountEmail('registered', '', $customer->getStoreId());
}