Migrate quota to new disk

In our project to migrate all our servers from our old SAN and VMware environment to our brand new top of the line EMC VNX VPlex SAN and new Dell VMware-hosts, we only have one server left, the server that hosts the home directories for all our users(except students). In our old environment we have an 12 terabyte raw device mapping, so the only way to migrate it with VMware is by cold migration and approximately 48 hours of down time. we also wanted to shrink it and convert it to a vmdk instead of an rdm. We decided to create a new vmdk-disk and use robocopy to copy all the files, doing so we reduce downtime for our users and gets a new smaller disk. Robocopy don´t copy folder quotas and we have pretty complex quota structure with individual quotas  on each users(about 8000) home directory, therefor me and my college Stefan Lozancic created a script to that migrates all quotas to the new disk.

#-------------------------------------------------------------
#NAME: Migratequota.ps1
#AUTHOR: Viktor Lindström and Stefan Lozancic
#
#COMMENTS: Migrate File Quotas to new disk
#-------------------------------------------------------------

Get-FsrmQuota | select path, template | foreach 
{
$_.path = $_.path.replace("D:","F:")
New-FsrmQuota -Path $_.path –Template $_.template
    }