rsconfig 公用程式 (SSRS)rsconfig Utility (SSRS)

rsconfig.exe 公用程式會加密連接和帳戶值,並會將它們儲存在 RSReportServer.config 檔中。The rsconfig.exe utility encrypts and stores connection and account values in the RSReportServer.config file. 加密的值包括自動處理報表的程序所用的報表伺服器資料庫連接資訊和帳戶值。Encrypted values include report server database connection information and account values used for unattended report processing.

語法Syntax

  
      rsconfig {-?}  
{-cconnection}  
{-eunattendedaccount}  
{-mcomputername}  
{-iinstancename}  
{-sservername}  
{-ddatabasename}  
{-aauthmethod}  
{-uusername}  
{-ppassword}  
{-ttrace}  

引數Arguments

詞彙Term 選擇性/必要Optional/Required 定義Definition
-?-? 選擇性。Optional. 顯示 Rsconfig.exe 引數的語法。Displays the syntax of Rsconfig.exe arguments.
-c 如果未使用 -e 引數,這就是必要的。Required if -e argument is not used. 指定用來將報表伺服器連接到報表伺服器資料庫的連接字串、認證和資料來源值。Specifies the connection string, credentials, and data source values used to connect a report server to the report server database.

此引數沒有取得值。This argument does not take a value. 不過,您也必須指定其他引數來搭配它,以便提供所有必要的連接值。However, additional arguments must be specified with it to provide all of the required connection values.

您可以使用指定的引數-c包括-m-s-i-d-a-u-p,以及-tArguments that you can specify with -c include -m, -s, -i,-d,-a,-u,-p, and-t.
-e 如果未使用 -c 引數,這就是必要的。Required if -c argument is not used. 指定自動報表執行帳戶。Specifies the unattended report execution account.

此引數沒有取得值。This argument does not take a value. 不過,命令列必須包括其他引數,以便指定組態檔中所加密的值。However, you must include additional arguments on the command line to specify that values that are encrypted in the configuration file.

您可以搭配 -e 來指定的引數,包括 -u-pArguments that you can specify with -e include -u and -p. 您也可以設定 -tYou can also set -t.
-m computername-m computername 如果您在設定遠端報表伺服器執行個體,這就是必要的。Required if you are configuring a remote report server instance. 指定主控報表伺服器的電腦名稱。Specifies the name of the computer that is hosting the report server. 如果省略這個引數,預設值就是 localhostIf this argument is omitted, the default is localhost.
-s <伺服器名稱> -s servername 必要。Required. 指定主控報表伺服器資料庫的 [SQL Server]SQL Server 執行個體。Specifies the [SQL Server]SQL Server instance that hosts the report server database.
-i instancename-i instancename 如果您使用具名執行個體,這就是必要的。Required if you are using named instances. 如果您利用具名 [SQL Server]SQL Server 執行個體來主控報表伺服器資料庫,這個值會指定具名執行個體。If you used a named [SQL Server]SQL Server instance to host the report server database, this value specifies the named instance.
-d databasename-d databasename 必要。Required. 指定報表伺服器資料庫的名稱。Specifies the name of the report server database.
-a authmethod-a authmethod 必要。Required. 指定報表伺服器用來連接到報表伺服器資料庫的驗證方法。Specifies the authentication method that the report server uses to connect to the report server database. 有效值如下:WindowsSQL (這個引數不區分大小寫)。Valid values are Windows or SQL (this argument is not case-sensitive).

Windows 指定報表伺服器使用 Windows 驗證。Windows specifies that the report server use Windows Authentication.

SQL 指定報表伺服器使用 SQL Server 驗證。SQL specifies that the report server use SQL Server Authentication.
-u [domain\]username-u [domain\]username -e 而言,這是必要的;對 -c 而言,這是選擇性的。Required with -e Optional with -c. 指定報表伺服器資料庫連接或自動帳戶的使用者帳戶。Specifies a user account for the report server database connection or for the unattended account.

若為 rsconfig -e,此引數是必要的。For rsconfig -e, this argument is required. 它必須是網域使用者帳戶。It must be a domain user account.

針對rsconfig-c-a SQL,這個引數必須指定[SQL Server]SQL Server登入。For rsconfig -c and -a SQL, this argument must specify a [SQL Server]SQL Server login.

針對rsconfig-c-a Windows,這個引數可以指定網域使用者、 內建帳戶或服務帳戶認證。For rsconfig -c and -a Windows, this argument may specify a domain user, a built-in account, or service account credentials. 如果您指定網域帳戶,請以 <網域><使用者名稱> 的格式指定 <網域> 和 <使用者名稱> 。If you are specifying a domain account, specify domain and username in the format domain\username. 如果您是使用內建帳戶,這個引數就是選擇性的。If you are using a built-in account, this argument is optional. 如果您要使用服務帳戶認證,請省略這個引數。If you want to use service account credentials, omit this argument.
-p password-p password 如果指定 -u 的話,這就是必要的。Required if -u is specified. 指定要搭配 <使用者名稱> 引數使用的密碼。Specifies the password to use with the username argument. 如果帳戶不需要密碼,您可以將這個引數設為空白值。You can set this argument to a blank value if the account does not require a password. 網域帳戶的這個值會區分大小寫。This value is case-sensitive for domain accounts.
-t 選擇性。Optional. 在追蹤記錄中,輸出錯誤訊息。Outputs error messages to the trace log. 此引數沒有取得值。This argument does not take a value. 如需詳細資訊,請參閱 Report Server Service Trace LogFor more information, see Report Server Service Trace Log.

PermissionsPermissions

您必須是主控您在設定的報表伺服器之電腦的本機管理員。You must be a local administrator on the computer that hosts the report server you are configuring.

檔案位置File Location

Rsconfig.exe 位於 \Program Files\Microsoft SQL Server\110\Tools\BinnRsconfig.exe is located in \Program Files\Microsoft SQL Server\110\Tools\Binn. 您可以從檔案系統上的任何資料夾執行此公用程式。You can run the utility from any folder on your file system.

備註Remarks

Rsconfig.exe 有兩個用途:Rsconfig.exe is used for two purposes:

  • 修改報表伺服器用來連接報表伺服器資料庫的連接資訊。To modify the connection information that a report server uses to connect to a report server database.

  • 設定特殊帳戶,供報表伺服器在無法使用其他認證時,用來登入遠端資料庫伺服器。To configure a special account that the report server uses to log on to a remote database server when other credentials are not available.

您可以在的本機或遠端執行個體上執行 rsconfig Reporting ServicesReporting Services公用程式。You can run thersconfig utility on a local or remote instance of Reporting ServicesReporting Services. 您無法使用 rsconfig 公用程式解密及檢視已設定的值。You cannot use the rsconfig utility to decrypt and view values that are already set.

在執行這個公用程式之前,您必須先將 Windows Management Instrumentation (WMI) 安裝在您要設定的電腦中。Before you can run this utility, Windows Management Instrumentation (WMI) must be installed on the computer that you are configuring.

範例Examples

下列範例說明 rsconfig的使用方式。The following examples illustrate ways of using rsconfig.

指定網域使用者帳戶Specifying a Domain User Account

這個範例會顯示在連接本機報表伺服器資料庫時,如何設定報表伺服器來使用網域使用者帳戶。This example shows how to configure a report server to use a domain user account when connecting to a local report server database.

rsconfig -c -s <SQLSERVERNAME> -d reportserver -a Windows -u <MYDOMAIN\MYACCOUNT> -p <PASSWORD>  

指定 SQL Server 資料庫使用者帳戶Specifying a SQL Server Database User Account

這個範例會顯示如何設定報表伺服器,利用 [SQL Server]SQL Server 登入來連接遠端報表伺服器資料庫。This example shows how to configure a report server to use [SQL Server]SQL Server login to connect to a remote report server database.

rsconfig -c -m <REMOTECOMPUTERNAME> -s <SQLSERVERNAME> -d reportserver -a SQL -u SA -p <SAPASSWORD>  

指定內建帳戶Specifying a Built-in Account

這個範例會顯示在連接本機報表伺服器資料庫時,如何設定報表伺服器來使用內建帳戶。This example shows how to configure a report server to use a built-in account when connecting to a local report server database. 請注意,不要使用 -uNotice that -u is not used. 支援的內建帳戶值範例包括本機系統的 NT AUTHORITY\SYSTEM 和網路服務的 NT AUTHORITY\NETWORKSERVICE (只適用於MicrosoftMicrosoft Windows Server 2003Windows Server 2003 )。Examples of supported built-in account values include NT AUTHORITY\SYSTEM for Local System and NT AUTHORITY\NETWORKSERVICE for Network Service (MicrosoftMicrosoft Windows Server 2003Windows Server 2003 only).

rsconfig -c -s <SQLSERVERNAME> -d reportserver -a Windows "NT AUTHORITY\SYSTEM"  

指定服務帳戶Specifying a Service Account

這個範例會顯示在連接本機報表伺服器資料庫時,如何設定報表伺服器來使用「報表伺服器視窗」服務帳戶和 Web 服務帳戶。This example shows how to configure a report server to use the Report Server Windows service account and Web service account when connecting to a local report server database. 請注意,不要使用 -u,也不要指定任何帳戶資訊。Notice that -u is not used and that no account information is specified. 當您從命令中刪除帳戶值, rsconfig 公用程式會使用執行各項服務時所用的整合式安全性和服務帳戶。When you eliminate account values from the command, the rsconfig utility uses integrated security and the service account that each service runs under.

rsconfig -c -s <SQLSERVERNAME> -d reportserver -a Windows  

指定本機伺服器中的自動帳戶Specifying the Unattended Account on a Local Server

這個範例會顯示如何設定帳戶,供不會將認證傳給外部資料來源的報表之自動執行報表的作業使用。This example shows how to configure the account used for unattended report execution for reports that do not pass credentials to the external data source. 這個帳戶必須是 Windows 網域帳戶。The account must be a Windows domain account. 您不能指定這個使用者名稱和密碼的 [SQL Server]SQL Server 登入。You cannot specify a [SQL Server]SQL Server login for the user name and password. 這個帳戶設在本機報表伺服器執行個體上。The account is configured on a local report server instance. 錯誤訊息放在 ReportingServices\LogFiles 資料夾的追蹤記錄中。Error messages are captured in the trace logs in the ReportingServices\LogFiles folder.

rsconfig -e -u <DOMAIN\ACCOUNT> -p <PASSWORD> -t  

指定遠端伺服器中的自動帳戶Specifying the Unattended Account on a Remote Server

這個範例會顯示如何設定與 Rsconfig.exe 版本相同的遠端報表伺服器執行個體的帳戶 (例如,報表伺服器和 Rsconfig.exe 都是 [SQL Server]SQL Server 2008 R2 版)。This example shows how to configure the account on a remote report server instance that is the same version as Rsconfig.exe (for example, the report server and Rsconfig.exe are the [SQL Server]SQL Server 2008 R2 version). 錯誤訊息的資訊放在遠端伺服器的追蹤記錄中。Error message information is captured in the trace logs on the remote server.

rsconfig -e -m <REMOTECOMPUTERNAME> -s <SQLSERVERNAME> -u <DOMAIN\ACCOUNT> -p <PASSWORD> -t  

另請參閱See Also

設定報表伺服器資料庫連接 (SSRS 組態管理員) Configure a Report Server Database Connection (SSRS Configuration Manager)
設定自動執行帳戶 (SSRS 組態管理員) Configure the Unattended Execution Account (SSRS Configuration Manager)
Reporting Services 報表伺服器 (原生模式) Reporting Services Report Server (Native Mode)
儲存加密的報表伺服器資料 (SSRS 組態管理員) Store Encrypted Report Server Data (SSRS Configuration Manager)
Reporting Services 組態檔 Reporting Services Configuration Files
報表伺服器命令提示字元公用程式 (SSRS) Report Server Command Prompt Utilities (SSRS)
RSReportServer 設定檔RSReportServer Configuration File