Home folder creation via script

Giganews Newsgroups
Subject: Home folder creation via script
Posted by:  gbug (gb…@discussions.microsoft.com)
Date: Mon, 24 Nov 2008

I want to be able to generate a users home folder via a script rather than
doing it through ADUC/properties.
Is there a way to do this. Basically i have a situation where i have a file
server full of users home folders, but no permissions. If i resetup their
home folder using \\servername\share$\%username% it overwrites the
permissions and keeps the data. I want to do this en mass, for around 2000