Q:

How to enable FSRM quota with PowerShell

To disable FSRM quota with PowerShell is command below.
Set-FsrmQuota D:\test -Disabled

Please tell me how to enable with PowerShell.
Best regards,

A:

I think you know how to open PowerShell. The command you gave is quite similar, but if you add "-Disabled" you basically just set a switch to tell the template to be disabled. You could use the switch in case you want to set a certain template, but do not want to have it enabled yet. Or just to disable it. To enable, first check the exact name of the template. 
Run:
Get-FsrmQuotaTemplate

After that use the command Gert Jan gave you, with the exact name of the template you choose from the previous command, and run it:
Reset-FsrmQuota -Path "D:\Test" -Template "5 GB Limit"

Please note that "5 GB Limit" is the exact template name found with
  the first command.

Now the template is set for the folder you chose.
If you want to set on a series of Homefolders for instance, you could do something like.
$homefolders = Get-ChildItem -Path "D:\home"
foreach($folder in $homefolders){
    Reset-FsrmQuota -Path "D:\Test\$($folder.name)" -Template "5 GB Limit"
}

I hope this helps!

