Please use the below script to Enable disk quota for the specific drive.
Disk quota management is permissions given by administrators that set limits on the user, workgroups, or other groups of storage space. By setting a quota, this helps prevents a server or share from becoming full of data, but still allows users to save files
Script user can change drive name in the variable drName
For example, I want to enable disk quota on E: instead of C: then I can change the drName value as drName='E:'
In the below code use the required drive you want to perform the Enable disk quota.
Please run the script procedure as "system user" .
This script run as system user