Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 2.27 KB

configurationsetting-method-setservicestate.md

File metadata and controls

58 lines (45 loc) · 2.27 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom helpviewer_keywords apilocation apiname apitype
SetServiceState method (WMI MSReportServer_ConfigurationSetting)
SetServiceState method (WMI MSReportServer_ConfigurationSetting)
maggiesMSFT
maggies
03/17/2017
reporting-services
wmi-provider-library-reference
conceptual
updatefrequency5
SetServiceState method
reportingservices.mof
SetServiceState (WMI MSReportServer_ConfigurationSetting Class)
MOFDef

ConfigurationSetting method - SetServiceState

Turns the Report Server Windows and Web services on and off.

Syntax

Public Sub SetServiceState(ByVal EnableWindowsService As Boolean, _  
    ByVal EnableWebService As Boolean, ByVal EnableReportManager As Boolean, _  
    ByRef HRESULT As Int32)  
public void SetServiceState(Boolean EnableWindowsService,  
    Boolean EnableWebService, Boolean EnableReportManager, out Int32 HRESULT);  

Parameters

EnableWindowsService
A Boolean value indicating the state of the Windows service. A value of true starts the Report Server Windows service. A value of false stops the Windows service.

EnableWebService
A Boolean value indicating the state of the [!INCLUDEssRSnoversion] Web service. A value of true starts the Report Server Web service. A value of false stops the Web service.

EnableReportManager
A Boolean value indicating the desired state of the Report manager.

Note

This setting has been deprecated as of SQL Server 2016 Reporting Services Cumulative Update 2. The web portal is always enabled. The value is ignored.

HRESULT
[out] Value indicating whether the call succeeded or failed.

Return value

Returns an HRESULT indicating success or failure of the method call. A value of 0 indicates that the method call was successful. A nonzero value indicates that an error occurred.

Requirements

Namespace: [!INCLUDEssRSWMInmspcA]

Related content

MSReportServer_ConfigurationSetting members