How do I limit user profile space?

John Savill

March 4, 1999

3 Min Read
ITPro Today logo in a gray background | ITPro Today

A. Service Pack 4 introduces PROQUOTA.EXE which is used to limit userquotas.

Profile quotas are enabled by using a system policy.

  1. Start the System Policy editor (poledit.exe)

  2. Load the templates Common.adm and Winnt.adm (from the Options menu select"Policy Template" from the %systemroot%inf directory)

  3. Create a new policy (File - "New Policy")

  4. Open Default User, and then expand Windows NT User Profiles.

  5. When you select Limit Profile Size, the following option are available:
    - Custom Message - The text in the dialog box that appears when the user'sprofile exceeds the quota.
    - Max Profile Size - The maximum size of the user profile. This value defaultsto 30,000 KB, so administrators will want to carefully consider how low theyset this value. This is especially true, given the fact that users will not beable to successfully log off if their profile is too large.
    - Include registry in file list - When the user exceeds the profile quota, anerror icon appears in the system tray. Double-clicking the icon brings up atool that lists all the files in the profile, as well as the file size from thelargest file to the smallest. By default, the list does not include files thatare smaller than 2 KB. Users can consult this list to determine which files canbe erased, moved to server-based storage, or backed up to offline storage. Whenthis option is checked, the users' registry settings, Ntuser.dat, will beincluded in the list. Users cannot delete this file.
    - Notify user when profile storage space is exceeded - By default, users willget a dialog box informing them that their user profile is too large only whenthey attempt to log off. With this option selected, a dialog box appears assoon as the profile reaches the quota size, and at a configurable intervalthereafter.

  6. A second option is to select "Exclude directories in roamingprofile" which does not include specified directories as part of the usersprofile

  7. Once complete save the file to the netlogon share of the domain controlleras NTCONFIG.POL

Ensure clients have the PROQUOTA.EXE image by either installation ServicePack 4 on them or manually copy the file to the %systemroot%system32directory.

When the clients log back on they will now have their quotas monitored andthese can be examined by clicking theClick here to view imagesmall icon.

NOTE: Remember that the user will not be able to log off if the user profilequota is exceeded, and, by default, small files are not listed in the dialogthat displays the files contained in the profile. If Internet Explorer 4.x isinstalled, these small files could include the entries in the TemporaryInternet Files folder. This cache uses a small percentage of the total drivespace, but can easily grow to be several megabytes in size. To delete thesefiles, the user will need to empty the cache through the Internet ExplorerInternet Options dialog box.

If quotas are enabled and the user cannot logoff, the PROQUOTA.EXE processcan be killed in Task Manager. This will allow the user to logoff.

The following list describes the registry keys and values for Profile Quotasin the following registry key:

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem

  • EnableProfileQuotaREG_DWORD0|1 - This setting turns profile quotas on oroff.

  • ProfileQuotaMessageREG_SZ - Default: "You have exceeded your profilestorage space. Before you can log off, you need to move some items from yourprofile to network or local storage."

  • MaxProfileSizeREG_DWORD0x12C-0x7530 - Default: 0x7530 - This settingspecifies the quota size in kilobytes.

  • WarnUserREG_DWORD0|1 - This setting specifies weather to warn the user assoon as the profile exceeds the quota; not to wait until the user attempts tolog off. In addition, it specifies weather to keep prompting the user to reducethe profile size at the interval set in WarnUserTimeout.

  • WarnUserTimeoutREG_DWORD0x0-0xFFFFFFFF - Default: 0xF - This settingspecifies how often the Warning dialog appears if the WarnUser setting above isturned on.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like