Installing the File Server Role

Right Click Roles. Select Add Roles. Click Next. Select File Services and Next to continue. Select Role Services.

Use the buttons below to navigate through the lesson

File Server – Although not required to share files, adding this core role service allows you to use the Share And Storage Management snap-in.

Distributed File System – Enables sharing files using the DFS namespace and replicating files between DFS servers. If you select this role service, the wizard will prompt you to configure a namespace.

File Server Resources Manager – Installs tools for generating storage reports, configuring quotas, and defining file screening policies. If you select this role service, the wizard will prompt you to enable storage monitoring on the local disks.

Services for Network File System – Provides connectivity for UNIX client computers that use Network File System (NFS) for file sharing. Note that most modern UNIX operating systems can connect to standard Windows file shares, so this service is typically not required.

Windows Search Service – Indexes files for faster searching when clients connect to shared folders. This role service is not intended for enterprise use. If you select this role service, the wizard will prompt you to enable indexing on the local disks.

Windows Server 2003 File Services – Provides services compatible with computers running Windows Server 2003.

Select the relevant options then click Next to continue.

Select Create a namespace later using DFS Management snap-in. Click Next to continue. Select volumes to be monitored then click Next to continue.

Set the report options then click Next to continue. Review chosen options then click Install. Click Close to complete the installation. File Services role is now installed.

Disk Quotas

When multiple users share a disk, whether locally or across the network, the disk will quickly become filled—usually because one or two users consume  far more disk space than the rest. Disk quotas make it easy to monitor users who consume more than a specified amount of disk space. Additionally, you can enforce quotas to prevent users from consuming more disk space. With Windows Server 2008 you should use the Quota Management console to configure disk quotas. You can also configure quotas using the DirQuota command-line tool. Additionally, you can configure disk quotas by using Group Policy settings or by using Windows Explorer.

Expand File Services and select Quotas. Right click Quotas and select Create Quota. Select the folder to apply quota to and click OK. You can use a quota template or select define custom quota properties.  Select Custom Properties. Change the space limit, add Label (optional).  Then click Add to set the notification thresholds. Set % of usage to generate notification. Select Send Email to the following administrators. You can also notify users. Select Event Log tab. Select Send warning to event log. Select Command tab. You can also run a Command or script when the limit is reached. Select Report tab. Select Generate reports and the type of reports to generate. Click OK to continue.

Click Create. The custom quota can be saved as a template for future use.  Click OK to complete. The custom quota has been created. Quotas can also be created using the built in templates.

Disk Quota Templates

100 MB Limit Defines a hard quota (a quota that prevents the user from creating more files) of 100 MB per user, with e-mail warnings sent to the user at 85 percent and 95 percent. At 100 percent of the quota, this template sends an e-mail to the user and to administrators.

200 MB Limit Reports To User Defines a hard quota of 200 MB per user, with e-mail warnings sent to the user at 85 percent and 95 percent. At 100 percent of the quota, this
template sends an e-mail to the user and to administrators and sends a report to the user.

200 MB Limit With 50 MB Extension – Defines a 200 MB quota. When the 200MB quota is reached, the computer sends an e-mail to the user and administrators and then applies the 250 MB Extended Limit quota to grant the user additional capacity.

250 MB Extended Limit – Primarily used with the previous quota template to provide the user an additional 50 MB of capacity. This template prevents the user from exceeding 250 MB.

Monitor 200 GB Volume Usage – Provides e-mail notifications when utilization reaches
70 percent, 80 percent, 90 percent, and 100 percent of the 200 GB soft quota.

Monitor 500 MB Share Provides e-mail notifications when utilization reaches 80 percent, 100 percent, and 120 percent of the 500 MB soft quota.

Enabling Quotas using Explorer

Disk Quotas enable an administrator to limit the amount of disk space available to users on a partition.

3 users, each with different Quotas
Fred – 500MB
George- 8MB
Susan – 500MB

Disk Quotas are only available on NTFS partitions.

To create a quota, right-click on the relevant drive. Select Properties. Select the Quota Tab. Select the Enable Quota management checkbox to enable quotas for this drive. Select the Deny Disk space to users exceeding quota limit checkbox to prevent users from exceeding their quota limits. Select the Limit Disk space to option to set the disk quota limits. Select the Limit and Warning levels. It is a good idea to log when a user exceeds his quota limit or reaches his warning level. This quota will apply to all users of the system except the Administrator. Select Quota Entries to configure individual quota limits.

Select Quota. Select New Quota Entry. Specify the user you want to set the quota limit for. Click OK. Select the quota limits you want to apply to the user. Click OK. The quota limits are displayed in the quota entries box. N.B. The administrator has no quota limit. Click on Apply to start the quota. Click on OK to accept the warning. The disk quota is now active. The user jacksonr is now only allowed 20MB on Disk D:.

Enabling Quotas using Command Prompt

You can use the DirQuota command to configure disk quotas at the command prompt or from a script. For example, the following command applies the standard 200 MB Limit Reports To User template to the C:\Shared folder:

dirquota quota add /Path:C:\Shared /SourceTemplate:”200 MB Limit Reports To User”

To create a hard limit of 100 MB, run the following command:
dirquota quota add /Path:C:\Shared /Limit:100MB /Type:Hard

Enabling Quotas using Group Policy

You can also configure simple disk quotas using Group Policy settings. In the Group Policy Management Editor, select the
Computer Configuration\Policies\Administrative Templates\System\Disk Quotas node to define these policy settings:

  • Enable Disk Quotas – You must enable this policy to use disk quotas.
  • Enforce Disk Quota Limit – Equivalent to selecting the Deny Disk Space To Users Exceeding Quota Limit check box when configuring local disk quotas.
  • Default Quota Limit And Warning Level – Defines the quota limit and warning levels, exactly as you can when configuring disk quotas using Windows Explorer.
  • Log Event When Quota Limit Exceeded – Equivalent to selecting the Log Event When A User Exceeds Their Quota Limit check box in Windows Explorer.