{"id":727,"date":"2016-05-10T11:50:06","date_gmt":"2016-05-10T09:50:06","guid":{"rendered":"http:\/\/www.rolig.dk\/?p=727"},"modified":"2016-05-10T11:50:06","modified_gmt":"2016-05-10T09:50:06","slug":"configure-hp-bios-during-osd","status":"publish","type":"post","link":"https:\/\/rolig.dk\/?p=727","title":{"rendered":"Configure HP Bios during OSD"},"content":{"rendered":"<h6><\/h6>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><strong>Update 10-12-2016<\/strong><\/p>\n<p>A reader of my blog contacted me with a CMD file that handles error codes. The cmd script:<\/p>\n<p>################CODESNIPPET HPQFLASH################<br \/>\nPUSHD %~dp0<\/p>\n<p>SET _upd=HPBIOSUPDREC.exe<br \/>\nSET bios=%1<\/p>\n<p>IF \/I &#8220;%PROCESSOR_ARCHITECTURE%&#8221; EQU &#8220;AMD64&#8221; (<br \/>\nSET _upd=HPBIOSUPDREC64.exe<br \/>\n)<\/p>\n<p>&#8220;%_upd%&#8221; -f%bios% -s -b -r<\/p>\n<p>POPD<\/p>\n<p>REM ERRORLEVEL 259=System family does not match family in ROM update<br \/>\nREM ERRORLEVEL 273=BIOS is already same version<br \/>\nREM ERRORLEVEL 282=BIOS installed is newer than the one set<br \/>\nREM ERRORLEVEL 3010=Reboot necessary<\/p>\n<p>IF %ERRORLEVEL% NEQ 282 (<br \/>\nIF %ERRORLEVEL% NEQ 273 (<br \/>\nIF %ERRORLEVEL% NEQ 259 (<br \/>\nEXIT \/B 3010<br \/>\n)<br \/>\n)<br \/>\n)<br \/>\n################CODESNIPPET HPQFLASH################<br \/>\n################CODESNIPPET BCU################<br \/>\nPUSHD %~dp0<\/p>\n<p>SET _bcu=BiosConfigUtility.exe<\/p>\n<p>IF \/I &#8220;%PROCESSOR_ARCHITECTURE%&#8221; EQU &#8220;AMD64&#8221; (<br \/>\nSET _bcu=BiosConfigUtility64.exe<br \/>\n)<\/p>\n<p>&#8220;%_bcu%&#8221; \/cspwdfile:&#8221;%~dp0TamediaPW_1.0.bin&#8221; \/nspwdfile:&#8221;&#8221; \/l<\/p>\n<p>IF %ERRORLEVEL% EQU 10 (<br \/>\n&#8220;%_bcu%&#8221; \/cspwdfile:&#8221;%~dp0TamediaPW_2.0.bin&#8221; \/nspwdfile:&#8221;&#8221; \/l<br \/>\n)<\/p>\n<p>POPD<\/p>\n<p>IF %ERRORLEVEL% NEQ 10 (<br \/>\nEXIT \/B 3010<br \/>\n)<br \/>\n################CODESNIPPET BCU################<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><strong>Update 30-09-2016<\/strong><\/p>\n<p>If you run the .cmd file the is described in this post, then the task sequence step will always exit with success. If you want the step to fail, if there is an error during BIOS configuration. Then you should run this command instead of the .cmd file:<\/p>\n<p><em>BiosConfigUtility64.exe \/set:&#8221;CONFIG_FILE.txt&#8221; \/nspwdfile:&#8221;Bios_Password.bin&#8221; \/cspwdfile:&#8221;Bios_Password.bin&#8221;<\/em><\/p>\n<p>There is some setting that you cannot apply on another computers. Ex. \u201cUniversally Unique Identifier (UUID)\u201d. You have to comment those out in your bios configuration file. You have to apply the bios configuration file on another Pc, then the one where you have created it, to find with settings that fails. Because all the settings will always work on the computer where it is created. To test the settings you can just run the command line above on another pc.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Follow this guide to configure HP bios settings during OSD.<\/p>\n<p>1. Download <a href=\"http:\/\/ftp.hp.com\/pub\/caps-softpaq\/cmit\/HP_BCU.html\" target=\"_blank\" rel=\"noopener noreferrer\">HP BIOS Configuration Utility (BCU)<\/a> from HP or <a href=\"https:\/\/onedrive.live.com\/redir?resid=447ADB7F2AA023F5!10915&amp;authkey=!ABTLDiQQfNwEfnA&amp;ithint=folder%2cps1\" target=\"_blank\" rel=\"noopener noreferrer\">BCU v4.0.15.1 (sp74840) here<\/a> and install on your reference machine.<\/p>\n<p>2. Reboot the Pc and configure the BIOS as you would like.<\/p>\n<p>3. Start Windows again.<\/p>\n<p>4. Start a Command prompt in admin mode and browse to: \u201cC:\\Program Files (86)\\HP\\BIOS Configuration Utility\u201d<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-1.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Udklip-1\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-1_thumb.jpg\" alt=\"Udklip-1\" width=\"600\" height=\"218\" border=\"0\" \/><\/a><\/p>\n<p>5. Run \u201cBiosConfigUtility.exe \/Get:CUSTOMNAME.txt\u201d to save the Bios.<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-2.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Udklip-2\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-2_thumb.jpg\" alt=\"Udklip-2\" width=\"600\" height=\"163\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-3.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Udklip-3\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-3_thumb.jpg\" alt=\"Udklip-3\" width=\"600\" height=\"193\" border=\"0\" \/><\/a><\/p>\n<p>6. If you want to create a password for the BIOS, then you can run this command line: HPQPswd.exe \/s \/p\u201dPASSWORD\u201d \/f\u201dFILENAME.bin\u201d<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-4.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Udklip-4\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-4_thumb.jpg\" alt=\"Udklip-4\" width=\"600\" height=\"108\" border=\"0\" \/><\/a><\/p>\n<p>7. Now you have the files that we should use in the task sequence in SCCM.<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-5.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"Udklip-5\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/Udklip-5_thumb.jpg\" alt=\"Udklip-5\" width=\"600\" height=\"324\" border=\"0\" \/><\/a><\/p>\n<p>8. Create a cmd file and call it \u201cBIOS_HP820G3_Config.cmd\u201d with the following content:<br \/>\npushd %~dp0<\/p>\n<p>set _bcu=BiosConfigUtility.exe<br \/>\nif \/I &#8220;%PROCESSOR_ARCHITECTURE%&#8221; EQU &#8220;AMD64&#8221; set _bcu=BiosConfigUtility64.exe<br \/>\n&#8220;%_bcu%&#8221; \/nspwdfile:&#8221;%~dp0Bios_Password.bin&#8221; \/set:&#8221;%~dp0BIOS_HP820G3.txt&#8221;<br \/>\nIF %ERRORLEVEL% NEQ 0 &#8220;%_bcu%&#8221; \/cspwdfile:&#8221;%~dp0Bios_Password.bin&#8221; \/set:&#8221;%~dp0BIOS_HP820G3.txt&#8221;<\/p>\n<p>popd<\/p>\n<p>9. Create a SCCM package called \u201cOS Scripts\u201d with \u201cBIOS_HP820G3.txt\u201d + \u201cBIOS_Password.bin\u201d + \u201cBIOS_HP820G3_Config.cmd\u201d and \u201cBiosConfigUtility.exe\u201d.<\/p>\n<p>9. Create a new group and call it \u201cHP Bios Tasks Windows 10\u201d<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-50.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-50.png\" alt=\"image\" width=\"448\" height=\"224\" border=\"0\" \/><\/a><\/p>\n<p>10. Add a WMI filter to make sure that the step only runs on HP computers.<\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-51.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-51.png\" alt=\"image\" width=\"504\" height=\"218\" border=\"0\" \/><\/a><\/p>\n<p>11. Add a \u201cRun Command Line\u201d step with the following settings<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-52.png\">:<\/a><br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-86.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-86.png\" alt=\"image\" width=\"508\" height=\"476\" border=\"0\" \/><\/a><\/p>\n<p>12. Add a WMI filter to make sure that is only runs on 820G3 models<br \/>\n<a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-53.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-53.png\" alt=\"image\" width=\"600\" height=\"309\" border=\"0\" \/><\/a><\/p>\n<p>13. Add a restart step after you Configure Bios step<\/p>\n<p><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image-54.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/05\/image_thumb-54.png\" alt=\"image\" width=\"369\" height=\"88\" border=\"0\" \/><\/a><\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Frolig.dk%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F727&amp;text=Hey%20check%20this%20out\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/rolig.dk\/wp-content\/plugins\/social-media-feather\/synved-social\/addons\/extra-icons\/image\/social\/circle\/96x96\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=https%3A%2F%2Frolig.dk%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F727&amp;title=Configure%20HP%20Bios%20during%20OSD\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/rolig.dk\/wp-content\/plugins\/social-media-feather\/synved-social\/addons\/extra-icons\/image\/social\/circle\/96x96\/linkedin.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Update 10-12-2016 A reader of my blog contacted me with a CMD file that handles error codes. The cmd script: ################CODESNIPPET HPQFLASH################ PUSHD %~dp0 SET _upd=HPBIOSUPDREC.exe SET bios=%1 IF \/I &#8220;%PROCESSOR_ARCHITECTURE%&#8221; EQU &#8220;AMD64&#8221; ( SET _upd=HPBIOSUPDREC64.exe ) &#8220;%_upd%&#8221; -f%bios% -s -b -r POPD REM ERRORLEVEL 259=System family does not match family in ROM update [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[43],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-sccm","tag-sccmosdbioshp"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=727"}],"version-history":[{"count":0,"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions"}],"wp:attachment":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}