SetUnattendedExecutionAccount メソッド (WMI MSReportServer_ConfigurationSetting)
レポートの自動実行に使用するアカウントを指定します。
構文
Public Sub SetUnattendedExecutionAccount(UserName as String, _
Password as String, ByRef HRESULT as Int32)
public void SetUnattendedExecutionAccount (string UserName,
string Password, out Int32 HRESULT);
パラメータ
UserName
自動実行で使用する Windows アカウント。Password
指定したアカウントのパスワード。HRESULT
[out] 呼び出しの成功または失敗を示す値。
戻り値
メソッド呼び出しの成功または失敗を示す HRESULT を返します。値 0 はメソッド呼び出しが成功したことを示します。0 以外の値は、エラーが発生したことを示します。
説明
SetUnattendedExecutionAccount メソッドは、レポート サーバーが指定されたユーザーとしてログインできるかどうかを検証しません。
SetUnattendedExecutionAccount メソッドを使用してレポート サーバー Windows サービスのコンテキストで自動実行を行うことはできません。
要件
名前空間 : root\Microsoft\SqlServer\ReportServer\RS_<EncodedInstanceName>\v10\Admin
プラットフォーム : Windows Server 2003 Datacenter Edition、Windows Server 2003 Enterprise Edition、Windows Server 2003 Standard Edition、Windows Vista、Windows XP Professional Service Pack 2 (SP2) または Service Pack 1 (SP1)、および Windows 2000 (すべてのバージョン)