Get Phone name from CMD

  adb, android, cmd, powershell, windows

I want a way with CMD or powershell to get phone name from CMD.

When I plug my Android Devine on my computer, in "This Computer" I got for example : SMN-HUA-126

I want to catch that name, and write it in a text file.

enter image description here

Source: Windows Questions