Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

limiting roaming profile sizes

Status
Not open for further replies.

leyland

Technical User
Nov 21, 2002
10
0
0

I want to limit roaming profile sizes to say 10MB, so if they go over this when they are logged on they will be unable to log off until they reduce their profile size. Ive seen this working before but i'm not sure if it is a 3rd party product or what. We are running nt4 server and w2k client. Anybody out there doing a similar thing?

Many Thanks
 
Hi,

For limiting profile storage you need to be having proqouta.exe from microsoft.

Service Pack 4 introduces PROQUOTA.EXE which is used to limit user quotas.

Profile quotas are enabled by using a system policy.

Start the System Policy editor (poledit.exe)
Load the templates Common.adm and Winnt.adm (from the Options menu select "Policy Template" from the %systemroot%\inf directory)
Create a new policy (File - "New Policy")
Open Default User, and then expand Windows NT User Profiles.
When you select Limit Profile Size, the following option are available:
- Custom Message - The text in the dialog box that appears when the user's profile exceeds the quota.
- Max Profile Size - The maximum size of the user profile. This value defaults to 30,000 KB, so administrators will want to carefully consider how low they set this value. This is especially true, given the fact that users will not be able to successfully log off if their profile is too large.
- Include registry in file list - When the user exceeds the profile quota, an error icon appears in the system tray. Double-clicking the icon brings up a tool that lists all the files in the profile, as well as the file size from the largest file to the smallest. By default, the list does not include files that are smaller than 2 KB. Users can consult this list to determine which files can be erased, moved to server-based storage, or backed up to offline storage. When this option is checked, the users' registry settings, Ntuser.dat, will be included in the list. Users cannot delete this file.
- Notify user when profile storage space is exceeded - By default, users will get a dialog box informing them that their user profile is too large only when they attempt to log off. With this option selected, a dialog box appears as soon as the profile reaches the quota size, and at a configurable interval thereafter.
A second option is to select "Exclude directories in roaming profile" which does not include specified directories as part of the users profile
Once complete save the file to the netlogon share of the domain controller as NTCONFIG.POL
Ensure clients have the PROQUOTA.EXE image by either installation Service Pack 4 on them or manually copy the file to the %systemroot%\system32 directory.

When the clients log back on they will now have their quotas monitored and these can be examined by clicking the
proquota.gif
small icon.

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

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

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

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System

1. EnableProfileQuotaREG_DWORD0|1 - This setting turns profile quotas on or off.
2. ProfileQuotaMessageREG_SZ - Default: "You have exceeded your profile storage space. Before you can log off, you need to move some items from your profile to network or local storage."
3. MaxProfileSizeREG_DWORD0x12C-0x7530 - Default: 0x7530 - This setting specifies the quota size in kilobytes.
4. WarnUserREG_DWORD0|1 - This setting specifies weather to warn the user as soon as the profile exceeds the quota; not to wait until the user attempts to log off. In addition, it specifies weather to keep prompting the user to reduce the profile size at the interval set in WarnUserTimeout.
5. WarnUserTimeoutREG_DWORD0x0-0xFFFFFFFF - Default: 0xF - This setting specifies how often the Warning dialog appears if the WarnUser setting above is turned on.

Hope this helps

Aslam
 
Thanks for the thorough reply Aslamvs! i'll give this a go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top