title: WmiMonitorID - Converting the results to ASCII
body: <p>Am attempting to query the serial number and the model of the monitor.<br />
  I managed to use the WMI code creator to generate the below code:</p>
  <pre><code>Try
      Dim MInfo As New ManagementObjectSearcher(&quot;root\WMI&quot;, &quot;SELECT * FROM WmiMonitorID&quot;)
  
      For Each Monitor In MInfo.Get()
          If Monitor(&quot;SerialNumberID&quot;) Is Nothing Then
              MsgBox(&quot;NA&quot;)
          Else
              Dim arrSerialNumberID As UInt16()
              arrSerialNumberID = Monitor(&quot;SerialNumberID&quot;)
              For Each arrValue As UInt16 In arrSerialNumberID
                  Console.WriteLine(&quot;Serial: &quot; &amp; arrValue)
              Next
          End If
          If Monitor(&quot;UserFriendlyName&quot;) Is Nothing Then
              MsgBox(&quot;NA&quot;)
          Else
              Dim arrSerialNumberID As UInt16()
              arrSerialNumberID = Monitor(&quot;UserFriendlyName&quot;)
              For Each arrValue As UInt16 In arrSerialNumberID
                  Console.WriteLine(&quot;Model: &quot; &amp; arrValue)
              Next
          End If
      Next
  Catch err As ManagementException
      MessageBox.Show(&quot;An error occurred while querying for WMI data: &quot; &amp; err.Message)
   End Try
  </code></pre>
  <p>The output is as per below:</p>
  <pre><code>SerialNumberID: 67,78,75,52,49,49,49,49,55,57,0,0,0,0,0,0    
  UserFriendlyName: 104,112,32,76,49,53,51,48,0,0,0,0,0
  </code></pre>
  <p>I am trying to convert the output to ASCII.</p>