建立檔案檢測範本Create a File Screen Template

適用於:Windows Server (半年度管道)、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012、Windows Server 2008 R2Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2

檔案檢測範本定義一組要檢測的檔案群組、要執行的檢測類型 (主動或被動),以及 (選擇性) 一組自動在使用者儲存 (或嘗試儲存) 未授權檔案時產生的通知。A file screen template defines a set of file groups to screen, the type of screening to perform (active or passive), and optionally, a set of notifications that will be generated automatically when a user saves, or attempts to save, an unauthorized file.

檔案伺服器資源管理員可以傳送電子郵件給系統管理員或特定使用者、記錄事件、執行命令或指令碼,或是產生報告。File Server Resource Manager can send e-mail messages to administrators or specific users, log an event, execute a command or a script, or generate reports. 您可以針對一個檔案檢測事件設定多種通知類型。You can configure more than one type of notification for a file screen event.

從範本建立專用檔案檢測,即可藉由更新範本來集中管理您的檔案檢測,而不需要在每個檔案檢測中重複變更。By creating file screens exclusively from templates, you can centrally manage your file screens by updating the templates instead of replicating changes in each file screen. 這項功能提供一個可進行所有更新作業的中心點,以簡化存放原則變更的實作。This feature simplifies the implementation of storage policy changes by providing one central point where you can make all updates.

重要

若要傳送電子郵件通知,以及使用適用於伺服器環境的參數來設定存放裝置報告,您必須先設定檔案伺服器資源管理員的一般選項。To send e-mail notifications and to configure the storage reports with parameters that are appropriate for your server environment, you must first set the general File Server Resource Manager options. 如需詳細資訊,請參閱設定檔案伺服器資源管理員選項For more information, see Setting File Server Resource Manager Options.

若要建立檔案檢測範本To create a File Screen Template

  1. [檔案檢測管理] 中,按一下 [檔案檢測範本] 節點。In File Screening Management, click the File Screen Templates node.

  2. [檔案檢測範本] 上按滑鼠右鍵,再按一下 [建立檔案檢測範本] (或從 [動作] 窗格中選取 [建立檔案檢測範本])。Right-click File Screen Templates, and then click Create File Screen Template (or select Create File Screen Template from the Actions pane). 如此會開啟 [建立檔案檢測範本] 對話方塊。This opens the Create File Screen Template dialog box.

  3. 如果您要複製現有範本的內容做為新範本的基礎,請從 [從範本複製內容] 下拉式清單中選取範本,然後按一下 [複製]If you want to copy the properties of an existing template to use as a base for your new template, select a template from the Copy properties from template drop-down list and then click Copy.

    無論您選擇使用現有範本的內容或是建立新的範本,都請在 [設定] 索引標籤上修改或設定下列值:Whether you have chosen to use the properties of an existing template or you are creating a new template, modify or set the following values on the Settings tab:

  4. [範本名稱] 文字方塊中,輸入新範本的名稱。In the Template name text box, enter a name for the new template.

  5. [檢測類型] 下方,按一下 [主動檢測][被動檢測] 選項Under Screening type, click the Active screening or Passive screening option. ([主動檢測] 防止使用者儲存屬於已封鎖檔案群組成員的檔案,並在使用者嘗試儲存未經授權檔案時產生通知。(Active screening prevents users from saving files that are members of blocked file groups and generates notifications when users try to save unauthorized files. [被動檢測] 傳送已設定的通知,但無法防止使用者儲存檔案)。Passive screening sends configured notifications, but it does not prevent users from saving files).

  6. 若要指定檢測哪些檔案群組:To specify which file groups to screen:

    [檔案群組] 中,選取您要納入的每個檔案群組Under File groups, select each file group that you want to include. (若要選取檔案群組的核取方塊,按兩下檔案群組標籤即可)。(To select the check box for the file group, double-click the file group label.)

    如果您想要檢視檔案群組包含與排除的檔案類型,請按一下檔案群組標籤,再按一下 [編輯]If you want to view the file types that a file group includes and excludes, click the file group label, and then click Edit. 若要建立新的檔案群組,按一下 [建立]To create a new file group, click Create.

    此外,您還可以設定檔案伺服器資源管理員來產生一個或多個通知,方法是設定下列在 [電子郵件訊息][事件記錄檔][命令][報告] 索引標籤上的選項。Additionally, you can configure File Server Resource Manager to generate one or more notifications by setting the following options on the E-mail Message, Event Log, Command, and Report tabs.

  7. 若要設定電子郵件通知:To configure e-mail notifications:

    [電子郵件訊息] 索引標籤上,設定下列選項:On the E-mail Message tab, set the following options:

    • 若要在使用者或應用程式嘗試儲存未經授權的檔案時通知系統管理員,請選取 [將電子郵件傳送給下列系統管理員] 核取方塊,並輸入要接收通知的系統管理帳戶名稱。To notify administrators when a user or application attempts to save an unauthorized file, select the Send e-mail to the following administrators check box, and then enter the names of the administrative accounts that will receive the notifications. 使用 account@domain 格式,並使用分號隔開多個帳戶。Use the format account@domain, and use semicolons to separate multiple accounts.
    • 若要將電子郵件傳送給嘗試儲存檔案的使用者,請選取 [將電子郵件傳送給嘗試儲存未授權檔案的使用者] 核取方塊。To send e-mail to the user who attempted to save the file, select the Send e-mail to the user who attempted to save an unauthorized file check box.
    • 若要設定訊息,請編輯提供的預設主旨列和郵件內文。To configure the message, edit the default subject line and message body that are provided. 方括弧中的文字會插入關於引發通知之檔案檢測事件的變數資訊。The text that is in brackets inserts variable information about the file screen event that caused the notification. 例如,[Source Io Owner] 變數會插入嘗試儲存未授權檔案之使用者的名稱。For example, the [Source Io Owner] variable inserts the name of the user who attempted to save an unauthorized file. 若要在文字中插入其他變數,請按一下 [插入變數]To insert additional variables in the text, click Insert Variable.
    • 若要設定其他標頭 (包括 [寄件者]、[副本]、[密件副本] 和 [回覆]),請按一下 [其他電子郵件標頭]To configure additional headers (including From, Cc, Bcc, and Reply-to), click Additional E-mail Headers.
  8. 若要在使用者嘗試儲存未授權檔案時,將錯誤記錄到事件記錄檔:To log an error to the event log when a user tries to save an unauthorized file:

    [事件記錄檔]索引標籤上,選取 [將警告傳送給事件記錄檔] 核取方塊,然後編輯預設記錄項目。On the Event Log tab, select the Send warning to event log check box, and edit the default log entry.

  9. 若要在使用者嘗試儲存未授權檔案時執行命令或指令碼:To run a command or script when a user tries to save an unauthorized file:

    [命令]索引標籤上,選取 [執行這個命令或指令碼] 核取方塊。On the Command tab, select the Run this command or script check box. 然後輸入命令,或按一下 [瀏覽] 以搜尋儲存指令碼所在的位置。Then type the command, or click Browse to search for the location where the script is stored. 您也可以輸入命令引數、選取命令或指令碼的工作目錄,或修改命令安全性設定。You can also enter command arguments, select a working directory for the command or script, or modify the command security setting.

  10. 若要在使用者嘗試儲存未授權檔案時產生一個或多個存放裝置報告:To generate one or more storage reports when a user tries to save an unauthorized file:

    [報告] 索引標籤上,選取 [產生報告] 核取方塊,並選取要產生的報告On the Report tab, select the Generate reports check box, and then select which reports to generate. (您可以為報告選擇一個或多個系統管理電子郵件收件者,或將電子郵件傳送給嘗試儲存檔案的使用者)。(You can choose one or more administrative e-mail recipients for the report or e-mail the report to the user who attempted to save the file.)

    此報告會儲存在事件報告的預設位置中,您可以在 [檔案伺服器資源管理員選項] 對話方塊中修改預設位置。The report is saved in the default location for incident reports, which you can modify in the File Server Resource Manager Options dialog box.

  11. 選取您要使用的所有檔案範本內容之後,按一下 [確定] 儲存範本。After you have selected all the file template properties that you want to use, click OK to save the template.

請參閱See also