Finding a User's Quota
If you implement quotas, users will undoubtedly want to be able to find how much of their quota they've used. You can determine a user's quota usage in several ways. One method is to use the Dsget User command:
dsget user "<UserDN>"
-part <PartitionDN>
-qlimit -qused
This command displays the effective quota limit and how much of his or her quota a particular user has used. For example, the following command returns the quota usage for the cn=rallen user in the dc=rallencorp,dc=com partition:
dsget user "cn=rallen,
cn=users,dc=rallencorp,dc=com"
-part "dc=rallencorp,dc=com"
-qlimit -qused
You can use similar parameters with the Dsget Computer and Dsget Group commands to find the quota usage for those types of objects.
Users can also determine their quota usage by querying the msDS-QuotaUsed and msDS-QuotaEffective attributes on the NTDS Quotas container for a partition. These two attributes are constructed, which means the attributes are dynamically calculated based on the user who's accessing them. The msDS-QuotaUsed attribute returns how much of the quota the user has used, and the msDS-QuotaEffective attribute contains the effective quota limit based on all applied quotas. . . .