SetWindowsServiceIdentity 메서드(WMI MSReportServer_ConfigurationSetting)

보고서 서버 Windows 서비스가 지정된 Windows 사용자로 실행되도록 하고 이 계정에 보고서 서버를 작동하기에 충분한 파일 시스템 사용 권한을 부여합니다.

구문

Public Sub SetWindowsServiceIdentity(UseBuiltInAccount as Boolean, _
    Account as String, Password as String, ByRef HRESULT as Int32)
public void SetWindowsServiceIdentity(boolean UseBuiltInAccount, 
    string Account, string Password, out Int32 HRESULT);

매개 변수

  • UseBuiltInAccount
    지정된 계정이 기본 제공 Windows 계정인지 여부를 나타냅니다.

  • Account
    Windows 서비스를 실행하는 데 사용할 "DOMAIN\alias" 형식의 Windows 계정입니다.

  • Password
    계정의 암호입니다.

  • HRESULT
    [out] 호출의 성공 여부를 나타내는 값입니다.

반환 값

메서드 호출의 성공 또는 실패를 나타내는 HRESULT를 반환합니다. 0 값은 메서드 호출이 성공했음을 나타냅니다. 0 이외의 값은 오류가 발생했음을 나타냅니다.

주의

UseBuiltInAccount 매개 변수가 true로 설정되어 있고 보고서 서버가 Microsoft Windows 2000 또는 Windows XP에서 실행되고 있으면 Name, Domain 및 Password 매개 변수의 값이 무시되고 로컬 시스템 계정이 사용됩니다.

UseBuiltInAccount 매개 변수가 true로 설정되어 있고 보고서 서버가 Windows Server 2003에서 실행되고 있으면 Domain 및 Password 속성이 무시되고 이름 필드에 “Builtin\NetworkService”, “Builtin\System” 또는 “Builtin\LocalService”가 포함되어야 합니다.

SetWindowsServiceIdentity 메서드는 보고서 서버 설치 디렉터리에 있는 파일 및 폴더에 대한 파일 사용 권한을 설정합니다.

Account 매개 변수에 지정된 계정에는 Windows의 LogonAsService 권한이 필요합니다. 이 권한은 메서드를 통해 지정된 계정에 부여됩니다.

요구 사항

네임스페이스: 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(모든 버전)