{"id":703,"date":"2016-07-22T11:05:00","date_gmt":"2016-07-22T09:05:00","guid":{"rendered":"http:\/\/www.rolig.dk\/?p=703"},"modified":"2016-07-22T11:05:00","modified_gmt":"2016-07-22T09:05:00","slug":"add-hp-warranty-info-to-sccm","status":"publish","type":"post","link":"https:\/\/rolig.dk\/?p=703","title":{"rendered":"Add HP warranty info to SCCM"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><strong>UPDATE 2016-10-29:<\/strong><br \/>HP have changed the layout and data type on the HP warranty page, so the script doesn&#8217;t work right now. I don&#8217;t have the time to update it right now, but I will make a tweet when I do.<\/p>\n<p>&nbsp;<\/p>\n<p>In this blog post I will show you have to retrieve warranty info from HP website and add it to SCCM.<br \/>I have created a PowerShell script that read the computers serial number and the connect to HP website and get the warranty info. Then the script create a WMI class with the warranty info so we can inventory the data with SCCM.<\/p>\n<p><em>The Script<\/em><\/p>\n<p>1. Download <a href=\"https:\/\/1drv.ms\/f\/s!AvUjoCp_23pE1SMUyw4kEHzcBH5w\" target=\"_blank\" rel=\"noopener noreferrer\">find_hp_warranty.ps1<\/a><\/p>\n<p>2. Add your country in line 6<\/p>\n<p>3. Change the namespace in line 77 to a name that you want<\/p>\n<p>4. Run it on a couple of computers<\/p>\n<p><em>SCCM<\/em><\/p>\n<p>1. Start the SCCM console and navigate to: Administration \u2013&gt; Client Settings \u2013&gt; Open \u201cDefault Client Settings\u201d<br \/><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-30.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-30.png\" width=\"600\" height=\"195\"><\/a><\/p>\n<p>2. Mark \u201cHardware Inventory\u201d and click \u201cSet Classes\u201d<br \/><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-31.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-31.png\" width=\"600\" height=\"466\"><\/a><\/p>\n<p>3. Click \u201cAdd\u201d<br \/><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-32.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-32.png\" width=\"600\" height=\"516\"><\/a><\/p>\n<p>4. Click \u201cConnect\u201d<br \/><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-33.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-33.png\" width=\"465\" height=\"516\"><\/a><\/p>\n<p>5. Type the name of the computer where you have run the script on in \u201cComputer name\u201d, add the name you wrote in line 77 in the script in \u201cWMI namespace\u201d and click \u201cConnect\u201d<br \/><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-35.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-35.png\" width=\"461\" height=\"324\"><\/a><\/p>\n<p>6. Mark \u201cHP_Warranty\u201d and Click \u201cOK\u201d<br \/><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-37.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-37.png\" width=\"466\" height=\"515\"><\/a><\/p>\n<p>7. You should now have the following classes. Click \u201cOK\u201d<br \/><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-39.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-39.png\" width=\"600\" height=\"518\"><\/a><\/p>\n<p>8. Click \u201cOK\u201d<br \/><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-40.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-40.png\" width=\"600\" height=\"461\"><\/a><\/p>\n<p>9. Now you have the warranty info in SCCM<br \/><a href=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image-41.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/rolig.dk\/wp-content\/uploads\/2016\/07\/image_thumb-41.png\" width=\"600\" height=\"257\"><\/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%252F703&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%252F703&amp;title=Add%20HP%20warranty%20info%20to%20SCCM\" 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>&nbsp; UPDATE 2016-10-29:HP have changed the layout and data type on the HP warranty page, so the script doesn&#8217;t work right now. I don&#8217;t have the time to update it right now, but I will make a tweet when I do. &nbsp; In this blog post I will show you have to retrieve warranty info [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4],"tags":[27],"class_list":["post-703","post","type-post","status-publish","format-standard","hentry","category-sccm","tag-osdsccmwarranty"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts\/703","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=703"}],"version-history":[{"count":0,"href":"https:\/\/rolig.dk\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions"}],"wp:attachment":[{"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rolig.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}