SqlService, ROOT\Microsoft\SqlServer\ComputerManagement12\MS_409

Class | Methods (7) | Properties (13) | Qualifiers (2) | Instances | Namespaces (2)
Samples: VB Script | C# | VB.Net | Search on:Microsoft

SqlService methods

SqlService has 7 methods (7 Local)

NameOriginReturn
PauseServiceSqlServiceuint32 {'out':True}
ResumeServiceSqlServiceuint32 {'out':True}
SetServiceAccountSqlServiceuint32 {'out':True}
SetServiceAccountPasswordSqlServiceuint32 {'out':True}
SetStartModeSqlServiceuint32 {'out':True}
StartServiceSqlServiceuint32 {'out':True}
StopServiceSqlServiceuint32 {'out':True}

SqlService properties

SqlService has 13 properties (13 Local)

NameOriginCIMType
AcceptPauseSqlService11 [boolean]
AcceptStopSqlService11 [boolean]
BinaryPathSqlService8 [string]
DependenciesSqlService8 [string]
DescriptionSqlService8 [string]
DisplayNameSqlService8 [string]
ErrorControlSqlService19 [uint32]
ExitCodeSqlService19 [uint32]
HostNameSqlService8 [string]
ProcessIdSqlService19 [uint32]
StartModeSqlService19 [uint32]
StartNameSqlService8 [string]
StateSqlService19 [uint32]

Detailed description of SqlService methods

Local methods (7) of SqlService class

PauseService method
Returnuint32 {'out':True}
Description'The PauseService method attempts to place the service in the paused state. It returns an integer value of 0 if the PauseService request was accepted, 1 if the request is not supported, and any other number to indicate an error.'
PauseService method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 6 namespaces
ResumeService method
Returnuint32 {'out':True}
Description'The ResumeService method attempts to place the service in the resumed state. It returns an integer value of 0 if the ResumeService request was accepted, 1 if the request is not supported, and any other number to indicate an error.'
ResumeService method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 6 namespaces
SetServiceAccount method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
ServiceStartNamestring0-{'in':True}
ServiceStartPasswordstring1-{'in':True}
Description''
SetServiceAccount method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 2 namespaces
SetServiceAccountPassword method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
AccountOldPasswordstring0-{'in':True}
AccountNewPasswordstring1-{'in':True}
Description''
SetServiceAccountPassword method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 2 namespaces
SetStartMode method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
StartModeuint320-{'in':True}
Description''
SetStartMode method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 2 namespaces
StartService method
Returnuint32 {'out':True}
Description'The StartService method attempts to place the service into its startup state. It returns one of the following integer values:
0 - The request was accepted.
1 - The request is not supported.
2 - The user did not have the necessary access.
3 - The service cannot be stopped because other services that are running are dependent on it.
4 - The requested control code is not valid, or it is unacceptable to the service.
5 - The requested control code cannot be sent to the service because the state of the service (Win32_BaseService:State) is equal to 0, 1, or 2.
6 - The service has not been started.
7 - The service did not respond to the start request in a timely fashion.
8 - Unknown failure when starting the service.
9 - The directory path to the service executable was not found.
10 - The service is already running.
11 - The database to add a new service is locked.
12 - A dependency for which this service relies on has been removed from the system.
13 - The service failed to find the service needed from a dependent service.
14 - The service has been disabled from the system.
15 - The service does not have the correct authentication to run on the system.
16 - This service is being removed from the system.
17 - There is no execution thread for the service.
18 - There are circular dependencies when starting the service.
19 - There is a service running under the same name.
20 - There are invalid characters in the name of the service.
21 - Invalid parameters have been passed to the service.
22 - The account which this service is to run under is either invalid or lacks the permissions to run the service.
23 - The service exists in the database of services available from the system.
24 - The service is currently paused in the system.
'
StartService method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 11 namespaces
StopService method
Returnuint32 {'out':True}
Description'The StopService method places the service in the stopped state. It returns an integer value of 0 if the service was successfully stopped, 1 if the request is not supported, and any other number to indicate an error.'
StopService method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 11 namespaces

Detailed description of SqlService properties

Local properties (13) of SqlService class

AcceptPause property
CIMTYPE'boolean'
Description'The AcceptPause property indicates whether the service can be paused.
Values: TRUE or FALSE. A value of TRUE indicates the service can be paused.'
AcceptPause property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 6 namespaces
AcceptStop property
CIMTYPE'boolean'
Description'The AcceptStop property indicates whether the service can be stopped.
Values: TRUE or FALSE. A value of TRUE indicates the service can be stopped.'
AcceptStop property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 6 namespaces
BinaryPath property
CIMTYPE'string'
Description'The PathName property contains the fully qualified path to the service binary file that implements the service.
Example: \SystemRoot\System32\drivers\afd.sys'
BinaryPath property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 4 namespaces
Dependencies property
CIMTYPE'string'
Description'Dependent services.'
Dependencies property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 4 namespaces
Description property
CIMTYPE'string'
Description''
Description property is in 2 classes of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 142 namespaces
DisplayName property
CIMTYPE'string'
Description'The DisplayName property indicates the display name of the service. This string has a maximum length of 256 characters. The name is case-preserved in the Service Control Manager. DisplayName comparisons are always case-insensitive.
Constraints: Accepts the same value as the Name property.
Example: Atdisk.'
DisplayName property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 30 namespaces
ErrorControl property
CIMTYPE'uint32'
Description'If this service fails to start during startup, the ErrorControl property specifies the severity of the error. The value indicates the action taken by the startup program if failure occurs. All errors are logged by the computer system. The computer system does not notify the user of "Ignore" errors. With "Normal" errors the user is notified. With "Severe" errors, the system is restarted with the last-known-good configuration. Finally, on"Critical" errors the system attempts to restart with a good configuration.'
ErrorControl property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 6 namespaces
ExitCode property
CIMTYPE'uint32'
Description'The ExitCode property specifies a Win32 error code defining any problems encountered in starting or stopping the service. This property is set to ERROR_SERVICE_SPECIFIC_ERROR (1066) when the error is unique to the service represented by this class, and information about the error is available in the ServiceSpecificExitCode member. The service sets this value to NO_ERROR when running, and again upon normal termination.'
ExitCode property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 8 namespaces
HostName property
CIMTYPE'string'
Description'Name of the system that hosts this service.'
HostName property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 23 namespaces
ProcessId property
CIMTYPE'uint32'
Description'The ProcessId property specifies the process identifier of the service.
Example: 324'
ProcessId property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 18 namespaces
StartMode property
CIMTYPE'uint32'
Description'The StartMode property indicates the start mode of the Win32 base service. "Boot" specifies a device driver started by the operating system loader. This value is valid only for driver services. "System" specifies a device driver started by the IoInitSystem function. This value is valid only for driver services. "Automatic" specifies a service to be started automatically by the service control manager during system startup. "Manual" specifies a service to be started by the service control manager when a process calls the StartService function. "Disabled" specifies a service that can no longer be started.'
StartMode property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 15 namespaces
StartName property
CIMTYPE'string'
Description'The StartName property indicates the account name under which the service runs. Depending on the service type, the account name may be in the form of "DomainName\Username".The service process will be logged using one of these two forms when it runs. If the account belongs to the built-in domain, ".\Username" can be specified. If NULL is specified, the service will be logged on as the LocalSystem account. For kernel or system level drivers, StartName contains the driver object name (that is, \FileSystem\Rdr or \Driver\Xns) which the input and output (I/O) system uses to load the device driver. Additionally, if NULL is specified, the driver runs with a default object name created by the I/O system based on the service name.
Example: DWDOM\Admin.'
StartName property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 6 namespaces
State property
CIMTYPE'uint32'
Description'The State property indicates the current state of the base service.'
State property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409 and in 36 namespaces

SqlService Qualifiers

NameValueToInstanceToSubclassOverridableAmendedLocal
AMENDMENTTrue
LOCALE'MS_409'

SqlService System properties

NameValueOriginCIMTypeLocalArray
__PATH'\\.\ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409:SqlService'___SYSTEM8
__NAMESPACE'ROOT\Microsoft\SqlServer\ComputerManagement12\ms_409'___SYSTEM8
__SERVER'.'___SYSTEM8
__DERIVATION[]___SYSTEM8
__PROPERTY_COUNT13___SYSTEM3
__RELPATH'SqlService'___SYSTEM8
__DYNASTY'SqlService'___SYSTEM8
__SUPERCLASSnull___SYSTEM8
__CLASS'SqlService'___SYSTEM8
__GENUS1___SYSTEM3

Similar Classes to SqlService

Number of classes:1
Class nameChildsPropertiesMethodsClass
Instances
Child
Instances
AbstractSingleton
SqlServiceAdvancedProperty003----
WUtils.com
online utility - toplist