{"id":275,"date":"2016-01-28T10:56:41","date_gmt":"2016-01-28T15:56:41","guid":{"rendered":"https:\/\/www.ccrossan.com\/?p=275"},"modified":"2016-07-07T08:02:40","modified_gmt":"2016-07-07T12:02:40","slug":"sccm-1511-driver-migration-fails","status":"publish","type":"post","link":"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/","title":{"rendered":"SCCM 1511 Driver Migration Fails"},"content":{"rendered":"\n<div class=\"twitter-share\"><a href=\"https:\/\/twitter.com\/intent\/tweet?via=crossan007\" class=\"twitter-share-button\">Tweet<\/a><\/div>\n<p>While migrating drivers from SCCM 2012 to SCCM 1511, the migration can fail with the following error message:<\/p>\n<p><code>Couldn't find the specified instance SMS_CategoryInstance.CategoryInstance_UniqueID='DriverCategories:<\/code><\/p>\n<p>This occurs given the following scenario:<\/p>\n<ol>\n<li>A driver is added to SCCM<\/li>\n<li>A category is assigned to the driver<\/li>\n<li>The category is deleted from the driver<\/li>\n<li>The migration job attempts to migrate the driver to a new SCCM environment<\/li>\n<\/ol>\n<p>Consider the following error message:<\/p>\n<p><code>Couldn't find the specified instance SMS_CategoryInstance.CategoryInstance_UniqueID='DriverCategories:78266da1-ebac-4c12-b2c8-89451383b03e<\/code><\/p>\n<p>An In-depth analysis shows that the driver category\u00a0does not\u00a0appear in the WMI Class SMS_CategoryInstance:<\/p>\n<p><code>Get-WmiObject -Namespace $Namespace -Class SMS_CategoryInstance -Filter \"CategoryInstance_UniqueID = 'DriverCategories:78266da1-ebac-4c12-b2c8-89451383b03e'\"<br \/>\n<\/code><br \/>\nReturns Null, but a SQL query indicates that the Category Instance still exists:<br \/>\n<code>SELECT * FROM CI_CategoryInstances<\/code><\/p>\n<p>WHERE CategoryInstance_UniqueID<br \/>\nLIKE &#8216;%78266da1-ebac-4c12-b2c8-89451383b03e%&#8217;<\/p>\n<p>&nbsp;<\/p>\n<p>Returns the following:<\/p>\n<p><code>CategoryInstanceID CategoryInstance_UniqueID CategoryTypeName DateLastModified SourceSite ParentCategoryInstanceID IsDeleted rowversion<\/code><br \/>\n<code>16777602 DriverCategories:78266da1-ebac-4c12-b2c8-89451383b03e DriverCategories 2015-07-27 11:52:33.000 CM1 NULL 1 0x000000000A36B34D<br \/>\n<\/code><\/p>\n<p>Take note of the &#8220;IsDeleted&#8221; column &#8211; set to True<\/p>\n<p>So, at this point, WMI reports that this category no longer exists; however the category is still in the SQL Database, though this is not the root of the problem.<\/p>\n<p>Now consider the WMI Class\u00a0SMS_CategoryInstanceMembership:<br \/>\nThis class contains a correlation of Objects to CategoryIDs. \u00a0This is not limited to Driver &lt;-&gt; Driver Category correlation.<\/p>\n<p>The true bug seems to be that when a driver category is removed, the entry for that driver category in the\u00a0\u00a0SMS_CategoryInstanceMembership class is not removed. \u00a0In order to fix this, and have a successful migration, we need to manually remove the CategoryInstanceMembership object for any drivers that <em>were\u00a0<\/em>assigned a\u00a0<em>now deleted<\/em> category.<\/p>\n<p>to Fix:<\/p>\n<ol>\n<li>Fire Up SQL Server Management Studio<\/li>\n<li>Create a New Query, and select your Site Database<\/li>\n<li>For each failing driver entry (as seen in &#8220;C:\\Program Files\\Microsoft Configuration Manager\\Logs\\migmctrl.log&#8221;),\n<ol>\n<li>Run the following SQL Query:<br \/>\n<code>SELECT * FROM CI_CategoryInstances<br \/>\nWHERE CategoryInstance_UniqueID<br \/>\nLIKE '%c6e9d9e3-1371-46ba-b7f1-bb46c5b6bc06%'<\/code><\/li>\n<li>Note the CategoryInstanceID \u00a0(should be like\u00a016777601)<\/li>\n<li>On your SCCM Server, from an administrative PowerShell run the following code to remove the association, substituting the CategoryInstanceID you discovered in step 3-2:<br \/>\n<code><\/code><code>Get-WmiObject -Namespace $Namespace -Class SMS_CategoryInstanceMembership -Filter \"CategoryInstanceID = '16777601'\" | Foreach-Object {<br \/>\nRemove-WmiObject -InputObject $_<br \/>\n}<\/code><\/li>\n<\/ol>\n<\/li>\n<li>Repeat the above section for each unique\u00a0CategoryInstance_UniqueID listed in the &#8220;C:\\Program Files\\Microsoft Configuration Manager\\Logs\\migmctrl.log&#8221; file.<\/li>\n<li>When complete, retry the migration, and examine for any additional missing\u00a0CategoryInstance_UniqueID errors.<\/li>\n<\/ol>\n<p>References (In order of usefulness):<\/p>\n<ol>\n<li><a href=\"http:\/\/cm12sdk.net\/?p=981\">http:\/\/cm12sdk.net\/?p=981<\/a><\/li>\n<li><a href=\"https:\/\/www.reddit.com\/r\/SCCM\/comments\/34b18i\/delete_multiple_driver_admin_categories\/\">https:\/\/www.reddit.com\/r\/SCCM\/comments\/34b18i\/delete_multiple_driver_admin_categories\/<\/a><\/li>\n<li><a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/hh849820.aspx\">https:\/\/technet.microsoft.com\/en-us\/library\/hh849820.aspx<\/a><\/li>\n<li><a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/dn151092(v=sc.20).aspx\">https:\/\/technet.microsoft.com\/en-us\/library\/dn151092(v=sc.20).aspx<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>While migrating drivers from SCCM 2012 to SCCM 1511, the migration can fail with the following error message: Couldn&#8217;t find the specified instance SMS_CategoryInstance.CategoryInstance_UniqueID=&#8217;DriverCategories: This occurs given the following scenario: A driver is added to SCCM A category is assigned to the driver The category is deleted from the driver The migration job attempts to &hellip; <a href=\"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SCCM 1511 Driver Migration Fails<\/span> <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":[],"categories":[110],"tags":[113,171,114,47,111,60,112],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SCCM 1511 Driver Migration Fails - Charles&#039; Blog\" \/>\n<meta property=\"og:description\" content=\"While migrating drivers from SCCM 2012 to SCCM 1511, the migration can fail with the following error message: Couldn&#039;t find the specified instance SMS_CategoryInstance.CategoryInstance_UniqueID=&#039;DriverCategories: This occurs given the following scenario: A driver is added to SCCM A category is assigned to the driver The category is deleted from the driver The migration job attempts to &hellip; Continue reading SCCM 1511 Driver Migration Fails &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/\" \/>\n<meta property=\"og:site_name\" content=\"Charles&#039; Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-28T15:56:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-07-07T12:02:40+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"crossan007\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crossan007.dev\/blog\/#website\",\"url\":\"https:\/\/crossan007.dev\/blog\/\",\"name\":\"Charles&#039; Blog\",\"description\":\"SharePoint | PowerShell | Exchange | SCCM | Ubuntu | PHP | JavaScript | A\/V Live Production | More...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crossan007.dev\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/#webpage\",\"url\":\"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/\",\"name\":\"SCCM 1511 Driver Migration Fails - Charles&#039; Blog\",\"isPartOf\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/#website\"},\"datePublished\":\"2016-01-28T15:56:41+00:00\",\"dateModified\":\"2016-07-07T12:02:40+00:00\",\"author\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979\"},\"breadcrumb\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crossan007.dev\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SCCM 1511 Driver Migration Fails\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979\",\"name\":\"crossan007\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/crossan007.dev\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g\",\"caption\":\"crossan007\"},\"url\":\"https:\/\/crossan007.dev\/blog\/author\/crossan007\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/","og_locale":"en_US","og_type":"article","og_title":"SCCM 1511 Driver Migration Fails - Charles&#039; Blog","og_description":"While migrating drivers from SCCM 2012 to SCCM 1511, the migration can fail with the following error message: Couldn't find the specified instance SMS_CategoryInstance.CategoryInstance_UniqueID='DriverCategories: This occurs given the following scenario: A driver is added to SCCM A category is assigned to the driver The category is deleted from the driver The migration job attempts to &hellip; Continue reading SCCM 1511 Driver Migration Fails &rarr;","og_url":"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/","og_site_name":"Charles&#039; Blog","article_published_time":"2016-01-28T15:56:41+00:00","article_modified_time":"2016-07-07T12:02:40+00:00","twitter_misc":{"Written by":"crossan007","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/crossan007.dev\/blog\/#website","url":"https:\/\/crossan007.dev\/blog\/","name":"Charles&#039; Blog","description":"SharePoint | PowerShell | Exchange | SCCM | Ubuntu | PHP | JavaScript | A\/V Live Production | More...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crossan007.dev\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/#webpage","url":"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/","name":"SCCM 1511 Driver Migration Fails - Charles&#039; Blog","isPartOf":{"@id":"https:\/\/crossan007.dev\/blog\/#website"},"datePublished":"2016-01-28T15:56:41+00:00","dateModified":"2016-07-07T12:02:40+00:00","author":{"@id":"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979"},"breadcrumb":{"@id":"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crossan007.dev\/blog\/sccm\/sccm-1511-driver-migration-fails\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crossan007.dev\/blog\/"},{"@type":"ListItem","position":2,"name":"SCCM 1511 Driver Migration Fails"}]},{"@type":"Person","@id":"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979","name":"crossan007","image":{"@type":"ImageObject","@id":"https:\/\/crossan007.dev\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g","caption":"crossan007"},"url":"https:\/\/crossan007.dev\/blog\/author\/crossan007\/"}]}},"_links":{"self":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts\/275"}],"collection":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/comments?post=275"}],"version-history":[{"count":8,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts\/275\/revisions"}],"predecessor-version":[{"id":284,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts\/275\/revisions\/284"}],"wp:attachment":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/media?parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/categories?post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/tags?post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}