{"id":23,"date":"2015-01-05T03:11:32","date_gmt":"2015-01-05T03:11:32","guid":{"rendered":"http:\/\/dv8tor.com\/?p=23"},"modified":"2015-01-05T03:11:32","modified_gmt":"2015-01-05T03:11:32","slug":"wsus-windows-8-1-2012-r2-machines-show-as-version-number","status":"publish","type":"post","link":"https:\/\/dv8tor.com\/?p=23","title":{"rendered":"WSUS &#8211; Windows 8.1 \/ 2012 R2 machines show as version number"},"content":{"rendered":"<p>This is purely a cosmetic annoyance. If you&#8217;re looking at your 8.1 \/ 2012 R2 machines in your WSUS console and they&#8217;re showing up as the Windows version number (6.x) instead of the branded name, there is a quick fix for this. It does involve a little command line work, and as always, you should take a snapshot\/backup of your environment before attempting.<\/p>\n<p>If you&#8217;ve installed WSUS using the Server Role option, it&#8217;ll most likely be installed using the Windows Internal Database (WID) rather than a full blown SQL instance. WID uses the sqlcmd.exe command for any manual database alterations.<\/p>\n<p>Default location is: &lt;Local SQL installation path&gt;\\&lt;SQL instance&gt;\\Tools\\Binn\\<\/p>\n<p>You will then need to write a small script to alter the version number to match the branded version of Windows.<\/p>\n<p>(For Windows 8.1)<\/p>\n<pre>UPDATE [SUSDB].[dbo].[tbComputerTargetDetail]\r\nSET [OSDescription] = 'Windows 8.1'\r\nWHERE [OSMajorVersion] = '6'\r\nAND [OSMinorVersion] = '3'\r\nAND [OldProductType] = '1'\r\nAND ([OSDescription] &lt;&gt; 'Windows 8.1' or [OSDescription] IS NULL)<\/pre>\n<p>(For Windows 2012 R2)<\/p>\n<pre>UPDATE [SUSDB].[dbo].[tbComputerTargetDetail]\r\nSET [OSDescription] = 'Windows Server 2012 R2'\r\nWHERE [OSMajorVersion] = '6'\r\nAND [OSMinorVersion] = '3'\r\nAND [OldProductType] &lt;&gt; '1'\r\nAND ([OSDescription] &lt;&gt; 'Windows Server 2012 R2' or [OSDescription] IS NULL)<\/pre>\n<p>Save these as separately named\u00a0.sql files. You&#8217;ll now need to execute the queries.<\/p>\n<p>Using the above default location, in a command prompt as an administrator:<\/p>\n<pre>&lt;Local SQL installation path&gt;\\&lt;SQL instance&gt;\\Tools\\Binn\\sqlcmd -S \\\\.\\pipe\\MICROSOFT##WID\\tsql\\query -i c:\\temp\\verrename1.sql<\/pre>\n<p>where c:\\temp is where I have placed the .sql files.<\/p>\n<p>You should see rows affected, that match the number of 8.1 \/ R2 machines you have.<\/p>\n<p>WSUS should now report the machines as Windows branded machines, rather than their OS version.<\/p>\n<p><strong>Note: <\/strong>This will update the existing items. Any new machines that appear after this has been done will need to have the query re-run for them to appear as 8.1 \/ 2012R2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is purely a cosmetic annoyance. If you&#8217;re looking at your 8.1 \/ 2012 R2 machines in your WSUS console and they&#8217;re showing up as the Windows version number (6.x) instead of the branded name, there is a quick fix for this. It does involve a little command line work,&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/dv8tor.com\/?p=23\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[13,9,14],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-wsus","tag-server-2012-r2","tag-windows-8-1","tag-wsus"],"_links":{"self":[{"href":"https:\/\/dv8tor.com\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dv8tor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dv8tor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dv8tor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dv8tor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":0,"href":"https:\/\/dv8tor.com\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"https:\/\/dv8tor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dv8tor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dv8tor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}