The class represents an instance of the SQL Server service.
Assembly: Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)
The object is used to programmatically manage the SQL Server service. With the object you can:
Connect to the service.
Modify the account and password used to connect to the service.
Start, stop, pause, and resume the service.
Check the properties of the service.
To get or set object properties or run methods, users must be a member of the sysadmin fixed server role.
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.