SqlService, ROOT\Microsoft\SqlServer\ComputerManagement12

Class | Methods (7) | Properties (15) | Qualifiers (3) | Instances (5) | 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 15 properties (15 Local)

NameOriginCIMType
AcceptPauseSqlService11 [boolean]
AcceptStopSqlService11 [boolean]
BinaryPathSqlService8 [string]
DependenciesSqlService8 [string]
DescriptionSqlService8 [string]
DisplayNameSqlService8 [string]
ErrorControlSqlService19 [uint32]
ExitCodeSqlService19 [uint32]
HostNameSqlService8 [string]
ProcessIdSqlService19 [uint32]
key
ServiceName
SqlService8 [string]
key
SQLServiceType
SqlService19 [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.'
ImplementedTrue
MappingStrings['Win32API|Service Functions|ControlService|dwControl|SERVICE_CONTROL_PAUSE']
PauseService method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 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.'
ImplementedTrue
MappingStrings['Win32API|Service Functions|ControlService|dwControl|SERVICE_CONTROL_CONTINUE']
ResumeService method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 6 namespaces
SetServiceAccount method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
ServiceStartNamestring0-{'in':True}
ServiceStartPasswordstring1-{'in':True}
Description''
ImplementedTrue
SetServiceAccount method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 2 namespaces
SetServiceAccountPassword method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
AccountOldPasswordstring0-{'in':True}
AccountNewPasswordstring1-{'in':True}
Description''
ImplementedTrue
SetServiceAccountPassword method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 2 namespaces
SetStartMode method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
StartModeuint320-{'in':True}
Description''
ImplementedTrue
SetStartMode method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 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.
'
ImplementedTrue
MappingStrings['Win32API|Service Functions|StartService']
Values['Success', 'Not Supported', 'Access Denied', 'Dependent Services Running', 'Invalid Service Control', 'Service Cannot Accept Control', 'Service Not Active', 'Service Request Timeout', 'Unknown Failure', 'Path Not Found', 'Service Already Running', 'Service Database Locked', 'Service Dependency Deleted', 'Service Dependency Failure', 'Service Disabled', 'Service Logon Failed', 'Service Marked For Deletion', 'Service No Thread', 'Status Circular Dependency', 'Status Duplicate Name', 'Status Invalid Name', 'Status Invalid Parameter', 'Status Invalid Service Account', 'Status Service Exists', 'Service Already Paused']
StartService method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 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.'
ImplementedTrue
MappingStrings['Win32API|Service Functions|ControlService|dwControl|SERVICE_CONTROL_STOP']
StopService method is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 11 namespaces

Detailed description of SqlService properties

Local properties (15) 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.'
MappingStrings['Win32API|Service Structures|SERVICE_STATUS|dwControlsAccepted|SERVICE_ACCEPT_PAUSE_CONTINUE']
readTrue
AcceptPause property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 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.'
MappingStrings['Win32API|Service Structures|SERVICE_STATUS|dwControlsAccepted|SERVICE_ACCEPT_STOP']
readTrue
AcceptStop property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 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'
MappingStrings['Win32API|Service Structures|QUERY_SERVICE_CONFIG|lpBinaryPathName']
readTrue
BinaryPath property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 4 namespaces
Dependencies property
CIMTYPE'string'
Description'Dependent services.'
readTrue
Dependencies property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 4 namespaces
Description property
CIMTYPE'string'
Description''
readTrue
Description property is in 2 classes of ROOT\Microsoft\SqlServer\ComputerManagement12 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.'
MappingStrings['Win32API|Service Structures|QUERY_SERVICE_CONFIG|lpDisplayName']
readTrue
DisplayName property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 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.'
MappingStrings['Win32API|Service Structures|QUERY_SERVICE_CONFIG|dwErrorControl']
readTrue
ValueMap['Ignore', 'Normal', 'Severe', 'Critical', 'Unknown']
Values['Ignore', 'Normal', 'Severe', 'Critical', 'Unknown']
ErrorControl property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 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.'
MappingStrings['Win32API|Service Structures|SERVICE_STATUS|dwWin32ExitCode']
readTrue
ExitCode property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 8 namespaces
HostName property
CIMTYPE'string'
Description'Name of the system that hosts this service.'
readTrue
HostName property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 23 namespaces
ProcessId property
CIMTYPE'uint32'
Description'The ProcessId property specifies the process identifier of the service.
Example: 324'
MappingStrings['Win32API|Service Structures|SERVICE_STATUS_PROCESS|dwProcessId']
readTrue
ProcessId property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 18 namespaces
ServiceName property
CIMTYPE'string'
keyTrue
readTrue
ServiceName property is in 2 classes of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 9 namespaces
SQLServiceType property
CIMTYPE'uint32'
keyTrue
readTrue
SQLServiceType property is in 2 classes of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 1 namespace
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.'
readTrue
ValueMap['0', '1', '2', '3', '4']
Values['Boot', 'System', 'Automatic', 'Manual', 'Disabled']
StartMode property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 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.'
MappingStrings['Win32API|Service Structures|QUERY_SERVICE_CONFIG|lpServiceStartName']
readTrue
StartName property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 6 namespaces
State property
CIMTYPE'uint32'
Description'The State property indicates the current state of the base service.'
MappingStrings['Win32API|Service Structures|SERVICE_STATUS|dwCurrentState ']
readTrue
ValueMap['Stopped', 'Start Pending', 'Stop Pending', 'Running', 'Continue Pending', 'Pause Pending', 'Paused']
Values['1', '2', '3', '4', '5', '6', '7']
State property is in 1 class (SqlService) of ROOT\Microsoft\SqlServer\ComputerManagement12 and in 36 namespaces

SqlService Qualifiers

NameValueToInstanceToSubclassOverridableAmendedLocal
dynamicTrue
LOCALE'MS_409'
provider'MSSQL_ManagementProvider'

SqlService System properties

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

Similar Classes to SqlService

Number of classes:3
Class nameChildsPropertiesMethodsClass
Instances
Child
Instances
AbstractSingleton
HADRServiceSettings041----
RegServices0404---
SqlServiceAdvancedProperty08340---
comments powered by Disqus
online utility - toplist
WUtils.com