Change the system unit type parmanently

Hi,
I'm trying to change the system unit type but when I run

units.SystemType = #millimeters

its changes but when I reset max its back to previous. But if I change it via menu> customize>...
then it remains even after resetting max.
How will it work via maxscript !

Thank you.