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 메서드에서는 보고서 서버가 지정된 사용자로 로그인할 수 있는지 여부를 확인하지 않습니다.

보고서 서버의 Windows 서비스 컨텍스트에서 무인 실행을 실행하기 위해 SetUnattendedExecutionAccount 메서드를 사용할 수 없습니다.

요구 사항

네임스페이스: 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 SP2(서비스 팩 2) 또는 SP1(서비스 팩 1) 또는 Windows 2000(모든 버전)