title: Can not access the windows service description through the service controller in VB.Net
body: <p>I have this Windows Service from my company : </p>
  
  <p><img src="https://i.stack.imgur.com/gDEx8.png" alt="enter image description here"></p>
  
  <p>I want to get the service description from it in code behind! but for some reason it does not return the service description.</p>
  
  <p>Can anyone help me with this .</p>
  
  <p>here is my code, and what it returns :</p>
  
  <pre><code>Dim MyServices As ServiceController = New ServiceController("AccTech Exchange Rate Import")
      Dim Status As String = MyServices.Status.ToString
      Dim Name As String = MyServices.ServiceName
  </code></pre>
  
  <p>and what the MyService variable returns.</p>
  
  <p><img src="https://i.stack.imgur.com/NTMQl.png" alt="enter image description here"></p>
  
  <p>How would i get the Service Description from here?</p>
  
  <p>Regards,</p>
  
  <p>EDIT:</p>
  
  <p>Here is my code after Miki Shah pointed me in the right direction!</p>
  
  <pre><code>Dim MyServices As ServiceController = New ServiceController("AccTech Exchange Rate Import")
  
  Dim Status As String = MyServices.Status.ToString
  Dim Name As String = MyServices.ServiceName
  Dim Description As String
  
  Dim objPath As String = String.Format("Win32_Service.Name='{0}'", Name)
  Using service As New ManagementObject(New ManagementPath(objPath))
      Description = service("Description")
  End Using
  </code></pre>