檔案伺服器資源管理員命令列工具File Server Resource Manager command-line tools

適用於: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

檔案伺服器資源管理員會安裝 FileServerResourceManager PowerShell Cmdlet,以及下列命令列工具:File Server Resource Manager installs the FileServerResourceManager PowerShell cmdlets as well as the following command-line tools:

  • Dirquota.exeDirquota.exe. 用於建立和管理配額,自動套用配額及配額範本。Use to create and manage quotas, auto apply quotas, and quota templates.
  • Filescrn.exeFilescrn.exe. 用於建立和管理檔案檢測、檔案檢測範本、檔案檢測例外及檔案群組。Use to create and manage file screens, file screen templates, file screen exceptions, and file groups.
  • Storrept.exeStorrept.exe. 用於設定報告參數,以及依需求產生存放裝置報告。Use to configure report parameters and generate storage reports on demand. 也用於建立報告工作,您可以使用 schtasks.exe 來排程這些工作。Also use to create report tasks, which you can schedule by using schtasks.exe.

您可以使用這些工具,來管理在本機電腦或遠端電腦上的儲存資源。You can use these tools to manage storage resources on a local computer or a remote computer. 如需這些命令列工具的詳細資訊,請參閱下列參考資料:For more information about these command-line tools, see the following references:

注意

若要查看命令語法以及命令的可用參數,請使用 /?To see command syntax and the available parameters for a command, run the command with the /? 參數執行命令。parameter.

使用命令列工具進行遠端管理Remote management using the command-line tools

每個工具都有數個用於執行動作的選項,這些動作與那些在檔案伺服器資源管理員 MMC 嵌入式管理單元中提供的動作類似。Each tool has several options for performing actions similar to those that are available in the File Server Resource Manager MMC snap-in. 若要讓命令對遠端電腦,而不是對本機電腦執行動作,請使用 /remote:ComputerName 參數。To have a command perform an action on a remote computer instead of the local computer, use the /remote:ComputerName parameter.

例如,Dirquota.exe 包含 template export 參數便可將配額範本設定寫入 XML 檔案,而包含 template import 參數則可從 XML 檔案匯入範本設定。For example,Dirquota.exe includes a template export parameter to write quota template settings to an XML file, and a template import parameter to import template settings from the XML file. /remote:ComputerName 參數加入 Dirquota.exe template import 命令,就會將範本從本機電腦上的 XML 檔案匯入至遠端電腦。Adding the /remote:ComputerName parameter to the Dirquota.exe template import command will import the templates from the XML file on the local computer to the remote computer.

注意

當您執行加上 /remote:ComputerName 參數的命令列工具,對遠端電腦執行範本匯出 (或匯入) 時,會在本機電腦上的 XML 檔案中寫入範本,或複製其中的範本。When you run the command-line tools with the /remote:ComputerName parameter to perform a template export (or import) on a remote computer, the templates are written to (or copied from) an XML file on the local computer.


其他考量Additional considerations

若要使用命令列工具管理遠端資源:To manage remote resources with the command-line tools:

  • 您必須使用屬於本機電腦或遠端電腦中 [系統管理員] 群組成員的網域帳戶來登入。You must be logged on with a domain account that is a member of the Administrators group on the local computer and on the remote computer.
  • 您必須從提高權限的 [命令提示字元] 視窗執行命令列工具。You must run the command-line tools from an elevated Command Prompt window. 若要開啟提升權限的命令提示字元視窗,請按一下 [開始],依序指向 [所有程式][附屬應用程式],以滑鼠右鍵按一下 [命令提示字元],然後按一下 [以系統管理員身分執行]To open an elevated Command Prompt window, click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
  • 遠端電腦必須執行 Windows Server,而系統必須已安裝檔案伺服器資源管理員。The remote computer must be running Windows Server, and File Server Resource Manager must be installed.
  • 必須啟用遠端電腦上的 [遠端檔案伺服器資源管理員管理] 例外。The Remote File Server Resource Manager Management exception on the remote computer must be enabled. 使用 [控制台] 中的 [Windows 防火牆] 來啟用此例外。Enable this exception by using Windows Firewall in Control Panel.

請參閱See also