{"id":5099,"date":"2017-12-17T12:19:31","date_gmt":"2017-12-17T11:19:31","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=5099"},"modified":"2021-12-14T10:44:58","modified_gmt":"2021-12-14T09:44:58","slug":"windows-pe-disable-autoscaling","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-pe-disable-autoscaling\/","title":{"rendered":"Windows PE: Disable DPI autoscaling"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_5099 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_5099')){$('.twoclick_social_bookmarks_post_5099').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%20PE%3A%20Disable%20DPI%20autoscaling\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Aif%20you%20start%20an%20application%20on%20Windows%20PE%20which%20is%20not%20%22compatible%22%20with%20the%20Windows%20Display%20autoscaling%20feature%20the%20applications%20forms%20is%20shown%20%22deformed%22.%20Fonts%20does%20not%20scale%20down%20and%20are%20shown%20bigger%20then%20the%20controls%20itself.%0D%0A%0D%0AYou%20can%20prevent%20Windows%20from%20doing%20this%20%3A-%29%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-pe-disable-autoscaling\\\/\",\"post_id\":5099,\"post_title_referrer_track\":\"Windows+PE%3A+Disable+DPI+autoscaling\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>if you start an application on Windows PE which is not &#8220;compatible&#8221; with the Windows Display autoscaling feature the applications forms is shown &#8220;deformed&#8221;. Fonts does not scale down and are shown bigger then the controls itself.<\/p>\n<p>You can prevent Windows from doing this \ud83d\ude42<br \/>\n<!--more--><br \/>\nSet the following registry keys in Windows PE registry. This must be done at the Windows PE creation time. <\/p>\n<p>Let us assume your Windows PE root is mounted at C:\\mnt. <\/p>\n<p>Load the Windows PE default User registry hive into your local registry unter the HKEY_LOCAL_MACHINE subkey temp. The WinPE HKEY_CURRENT_USER registry hive is then exposed under HKLM\\temp and can be edit.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:\\&gt; reg load HKLM\\temp C:\\mnt\\windows\\system32\\config\\DEFAULT\r\n<\/pre>\n<p>Insert the following values. Replace the Path &#8220;X:\\Pro&#8230;..&#8221; with the absolute Path of your Application when Win PE is started.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nreg add &quot;HKLM\\temp\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers&quot; \/t REG_SZ \/v &quot;X:\\Program Files\\yourApplication\\yourApplication.exe&quot; \/d &quot;HIGHDPIAWARE&quot; \/f\r\nreg add &quot;HKLM\\temp\\Control Panel\\Desktop&quot; \/t REG_DWORD \/v LogPixels \/d 96 \/f\r\nreg add &quot;HKLM\\temp\\Control Panel\\Desktop&quot; \/v Win8DpiScaling \/t REG_DWORD \/d 0x00000001 \/f\r\nreg add &quot;HKLM\\temp\\Control Panel\\Desktop&quot; \/v DpiScalingVer \/t REG_DWORD \/d 0x00001018 \/f\r\n<\/pre>\n<p>Unload the hive <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:\\&gt; reg unload HKLM\\temp\r\n<\/pre>\n<p>and start building of the Windows PE.<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, if you start an application on Windows PE which is not &#8220;compatible&#8221; with the Windows Display autoscaling feature the applications forms is shown &#8220;deformed&#8221;. Fonts does not scale down and are shown bigger then the controls itself. You can prevent Windows from doing this \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":[1121,62,294,300],"class_list":["post-5099","post","type-post","status-publish","format-standard","hentry","category-windowsknowhow","tag-autoscaling","tag-disable","tag-prevent","tag-windows-pe"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/5099","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=5099"}],"version-history":[{"count":4,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/5099\/revisions"}],"predecessor-version":[{"id":5104,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/5099\/revisions\/5104"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=5099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=5099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=5099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}