{"id":2761,"date":"2015-06-11T23:15:17","date_gmt":"2015-06-11T21:15:17","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=2761"},"modified":"2015-06-12T07:54:39","modified_gmt":"2015-06-12T05:54:39","slug":"windows-get-a-device-serial-number-from-command-line","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-get-a-device-serial-number-from-command-line\/","title":{"rendered":"Windows: Get a device serial number from command line"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_2761 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_2761')){$('.twoclick_social_bookmarks_post_2761').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Get%20a%20device%20serial%20number%20from%20command%20line\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ait%27s%20simply%20possible%20to%20get%20the%20serial%20number%20of%20your%20Windows%20device%20at%20command%20line.%20Precontition%20is%20that%20the%20vendor%20has%20done%20it%27s%20home%20work%20and%20filled%20up%20the%20DMI%20tables%20correctly%20%3A-%29%20.%0D%0A%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-get-a-device-serial-number-from-command-line\\\/\",\"post_id\":2761,\"post_title_referrer_track\":\"Windows%3A+Get+a+device+serial+number+from+command+line\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>it&#8217;s simply possible to get the serial number of your Windows device at command line. Precontition is that the vendor has done it&#8217;s home work and filled up the DMI tables correctly \ud83d\ude42 .<\/p>\n<p><!--more--><\/p>\n<p>You have to query the Wmi Class Win32_BIOS. You can use the GUI Tool <strong>wbemtest<\/strong>, connect to the root\\cimv2 namespace fire the query<\/p>\n<p><code>select SerialNumber from Win32_BIOS<\/code><\/p>\n<p>Or open a command line and use the Windows wmi command line tool<strong> wmic<\/strong><\/p>\n<p><code><br \/>\nc:\\> wmic bios get serialnumber<br \/>\nYXZ0123456<br \/>\n<\/code><br \/>\n&nbsp;<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, it&#8217;s simply possible to get the serial number of your Windows device at command line. Precontition is that the vendor has done it&#8217;s home work and filled up the DMI tables correctly \ud83d\ude42 .<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[23,661,20,354],"class_list":["post-2761","post","type-post","status-publish","format-standard","hentry","category-windowsknowhow","tag-command-line","tag-serialnumber","tag-windows-2","tag-wmi"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/2761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=2761"}],"version-history":[{"count":2,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/2761\/revisions"}],"predecessor-version":[{"id":2763,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/2761\/revisions\/2763"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=2761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=2761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=2761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}