these scripts worked fine until now! We are using it in backup and restore procedures successfully!
My environment: ~20000 accounts (mailbox size ranging between 1GB and 10GB) distributed along 6 mailbox servers.
And I m pretty curious to know how did you restore the accounts. I am pretty confused on restoration part.