Share via


Exercise 3: Compacting Stagnant Outlook Files

Figure 1

In this lesson, you will leverage FSRM to set up an automatic monthly job compresses Outlook databases that have not been modified in a year.

Outlook files can take up large amounts of space. With redirected home directories this directly impacts File Servers. To make matters more complicated, users oftentimes have a series of archived Outlook files they keep around. These Outlook files do not change very often and can take up significant amounts of storage capacity.

Part 1: Compacting Stagnant Outlook Files

  1. In FSRM, select File Management Tasks, and click Create File Management Task in the Actions pane:

    Figure 2

    Note:
     This opens the Create File Management Task dialog box.
  2. In the Name text box, enter Compact old Outlook files for the new task.
  3. Under Scope, add the following directory using the Add button:

    C:\Server 2008 R2 Labs\File System Classification Infrastructure\Data\Shares\Users
  4. Click on the Action tab
  5. Select Custom from the dropdown box labeled Type:

    Figure 3

  6. Enter the following application path into the Executable text box:

    c:\windows\system32\compact.exe

    Figure 4

    Note:
     This command will be invoked for each file that matches the criteria of the File Management Task. Compact.exe can enable and disable NTFS compression for files.
  7. Enter “/c “ into the Arguments text box:

    Figure 5

    Note:
     Please note that the is a space after the c
  8. Select [Source File Path] from the drop down box labeled Select variable to insert

    Figure 6

  9. Click the Insert Variable button:

    Figure 7

    Note:
     The Arguments text box will now contain the text “/C [Source File Path” in it. These parameters will be passed to the command. The “/c” parameter to “compact.exe” indicates that it should compress any files supplied to the command. The “[Source File Path]” string will be replaced with the actual file being acted on when the command is executed.

  10. In the Command security section select Local System:

    Figure 8

    Note:
     Without this, the command will not be allowed to make changes to files.
  11. Click the Condition tab
  12. Select the check box next to the text Days since last modified and enter the number 365 (equivalent to approximately 1 year) into the text box next to it.
  13. Select the check box next to the text Wildcard pattern matching filename and enter the following text into the text box next to it:

    *.pst

    Figure 9

  14. Click on the Schedule tab
  15. Click Create…, and then in the Schedule dialog box, click New. This displays a default schedule set for 9:00 A.M. daily.
  16. Select Monthly from the drop down list.
    Note:
     This sets up the schedule to run on the 1st day of every month at 9:00 am.
  17. Click OK to close the Schedule dialog.
  18. Click OK to close file management task dialog.
  19. Open an explorer and navigate to:

    C:\Server 2008 R2 Labs\File System Classification Infrastructure\Data\Shares\Users\Bob
  20. Note the size of the outlook file Archive_for_bob.pst and that it hasn’t been modified in a long time:

    Figure 10

  21. In FSRM, rightclick on the Compact old Outlook files File Management Task you just created and select Run File Management Task Now:

    Figure 11

  22. Select Wait for task to complete execution and click OK
  23. Inspect the generated report for files affected by the File Management Task.
  24. Find the file archive_for_bob.pst, right click on it, and select Properties:

    Figure 12

    Note:
     Note that the file now takes up much less space according to the label Size on disk.