--- title: "HostName Property (SqlService Class) | Microsoft Docs" ms.custom: "" ms.date: "06/13/2017" ms.prod: "sql-server-2014" ms.reviewer: "" ms.technology: wmi ms.topic: "reference" api_name: - "HostName Property (SqlService Class)" api_location: - "sqlmgmproviderxpsp2up.mof" topic_type: - "apiref" helpviewer_keywords: - "HostName property" ms.assetid: 3df0ca15-9eca-4cbd-8c39-cb00be6a0215 author: CarlRabeler ms.author: carlrab manager: craigg --- # HostName Property (SqlService Class) Gets the host name of the service. ## Syntax ``` object .HostName [= value] ``` ## Parts *object* A [SqlService Class](sqlservice-class.md) object that represents the service. ## Property Value/Return Value A string value that specifies the host name of the service. ## Remarks ## See Also [Starting and Stopping Services](https://technet.microsoft.com/library/ms174886\(v=sql.105\).aspx)