Configure File Management Tasks in Windows Server 2016

We can configure file management tasks with File Server Resource Manager (FSRM) in Windows Server 2016 to perform various tasks on the file server for us.

For example we can configure scheduled tasks to to complete specific actions, such as expire files older than a certain date automatically and archive them, or encrypt files that match a specific criteria. We can also run custom scripts on a specific set of files to perform arbitrary actions as required.

In this example we’ll show you how to configure file management tasks in Windows Server 2016, however the steps are very similar to older versions of the Windows operating system.

To use this feature you must first install the FSRM role.


This post is part of our Microsoft 70-744 Securing Windows Server 2016 exam study guide series. For more related posts and information check out our full 70-744 study guide.


Configure File Management Tasks

From Server Manager, select Tools > File Server Resource Manager and then select File Management Tasks as shown below.

File Server Resource Manager

We can now select “Create File Management Task” from the actions menu on the right. This will open the “Create File Management Task” window as shown below. It starts on the general tab, where we can give the task a name, description, and optionally tick to enable or disable the task.

Create File Management Task - General Tab

In the scope tab we can select the type of files to include from a predefined list of types, or otherwise add a custom folder. In this example we’ve added a custom scope to include everything on the Administrator user’s desktop.

Create File Management Task - Scope Tab

On the action tab we can select the action that we want to take place from either file expiration, RMS encryption, or a custom action. When selecting custom we are able to select a script or executable file to run as a specified user. File expiration allows us to select a directory that we want to expire files within which will move them to an archived location after a specified period of time, while RMS encryption allows us to encrypt files that are in scope and match the set conditions.

Create File Management Task - Action Tab

On the notification tab we can select to add a contact.

Create File Management Task - Notification Tab

We can then select an email address to send to, an event log message to log, or a command to run as part of the notification activities.

Create File Management Task - Add Notification

On the report tab we can select what we want to log, and the format that the report should be generated in. Reports will be automatically saved in the C:\StorageReports\Scheduled folder, and we can also optionally select to email a report to a specified email address.

Create File Management Task - Report Tab

On the condition tab we have some options with how we want to deal with file expiration, in this case I want to expire files 5 days after that have been created.

Create File Management Task - Condition Tab

Finally, on the schedule tab we can run the file management task at a specific time, on specific days of the week, or days in the month. The task can also be set to run continually on future files that match what we set in the scope tab.

Create File Management Task - Schedule Tab

Once the file management task has been created, we can view it in the in the file management tasks section as shown below, which allows us to view a summary of what we’ve configured.

File Management Task Summary

We can then optionally right click a task and select to run it now if we don’t want to wait for the scheduled time to happen.

Run File Management Task

By combining all of these options we can configure file management tasks capable of performing powerful scheduled actions.

Summary

We can configure file management tasks with File Server Resource Manager (FSRM) in Windows Server 2016 to perform file expiration, RMS encryption, or custom tasks. These tasks can be run on a scheduled time, or any time manually, and can be configured to generate and email a report or other notification.


This post is part of our Microsoft 70-744 Securing Windows Server 2016 exam study guide series. For more related posts and information check out our full 70-744 study guide.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>