{"id":859,"date":"2016-03-29T18:00:07","date_gmt":"2016-03-29T16:00:07","guid":{"rendered":"http:\/\/dety.net.ua\/?p=859"},"modified":"2016-03-30T15:52:05","modified_gmt":"2016-03-30T13:52:05","slug":"windows-10-sysprep-error","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=859","title":{"rendered":"Windows 10 + Sysprep + Generalize + Error"},"content":{"rendered":"<p>I couldn&#8217;t run Sysprep on Windows 10 because some packages were incompatible with Sysprep. But you can do it without the option Generalize.<\/p>\n<p>Fix:<\/p>\n<ol>\n<li>Run <strong><span class=\"text-base\">Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation <\/span><\/strong><span class=\"text-base\">&#8211; you will see what the user blocks running<\/span><\/li>\n<li>Login with this users and run: <strong><span class=\"text-base\">Remove-AppxPackage -Package &lt;invalid packagefullname from sysprep logs&gt;<\/span><\/strong><\/li>\n<li>For me it was Skype, .Net 1.1, AppLocker.<\/li>\n<\/ol>\n<p>Links:<\/p>\n<p><a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/2769827\" target=\"_blank\">https:\/\/support.microsoft.com\/en-us\/kb\/2769827<\/a><\/p>\n<p>The automated script to delete all the packages:<\/p>\n<blockquote><p>$apps=@(<br \/>\n&#8220;9E2F88E3.Twitter&#8221;<br \/>\n&#8220;ClearChannelRadioDigital.iHeartRadio&#8221;<br \/>\n&#8220;Flipboard.Flipboard&#8221;<br \/>\n&#8220;king.com.CandyCrushSodaSaga&#8221;<br \/>\n&#8220;Microsoft.3DBuilder&#8221;<br \/>\n#&#8221;Microsoft.Appconnector&#8221;<br \/>\n&#8220;Microsoft.BingFinance&#8221;<br \/>\n&#8220;Microsoft.BingNews&#8221;<br \/>\n&#8220;Microsoft.BingSports&#8221;<br \/>\n&#8220;Microsoft.BingWeather&#8221;<br \/>\n&#8220;Microsoft.CommsPhone&#8221;<br \/>\n&#8220;Microsoft.Getstarted&#8221;<br \/>\n#&#8221;Microsoft.Messaging&#8221;<br \/>\n&#8220;Microsoft.MicrosoftOfficeHub&#8221;<br \/>\n&#8220;Microsoft.MicrosoftSolitaireCollection&#8221;<br \/>\n&#8220;Microsoft.Office.OneNote&#8221;<br \/>\n&#8220;Microsoft.Office.Sway&#8221;<br \/>\n&#8220;Microsoft.People&#8221;<br \/>\n&#8220;Microsoft.SkypeApp&#8221;<br \/>\n&#8220;Microsoft.Windows.Phone&#8221;<br \/>\n&#8220;Microsoft.Windows.Photos&#8221;<br \/>\n&#8220;Microsoft.WindowsAlarms&#8221;<br \/>\n#&#8221;Microsoft.WindowsCalculator&#8221;<br \/>\n&#8220;Microsoft.WindowsCamera&#8221;<br \/>\n&#8220;Microsoft.WindowsMaps&#8221;<br \/>\n&#8220;Microsoft.WindowsPhone&#8221;<br \/>\n&#8220;Microsoft.WindowsSoundRecorder&#8221;<br \/>\n#&#8221;Microsoft.WindowsStore&#8221;<br \/>\n&#8220;Microsoft.XboxApp&#8221;<br \/>\n&#8220;Microsoft.ZuneMusic&#8221;<br \/>\n&#8220;Microsoft.ZuneVideo&#8221;<br \/>\n#&#8221;microsoft.windowscommunicationsapps&#8221;<br \/>\n&#8220;Microsoft.MinecraftUWP&#8221;<br \/>\n&#8220;ShazamEntertainmentLtd.Shazam&#8221;<br \/>\n)<\/p>\n<p>foreach ($app in $apps) {<br \/>\nGet-AppxPackage -Name $app -AllUsers | Remove-AppxPackage<br \/>\nGet-AppXProvisionedPackage -Online | where DisplayName -EQ $app | Remove-AppxProvisionedPackage -Online<\/p>\n<p>$appPath=&#8221;$Env:LOCALAPPDATA\\Packages\\$app*&#8221;<br \/>\nRemove-Item $appPath -Recurse -Force -ErrorAction 0<br \/>\n}<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I couldn&#8217;t run Sysprep on Windows 10 because some packages were incompatible with Sysprep. But you can do it without the option Generalize. Fix: Run Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation &#8211; you will see what the user blocks running Login with this users and run: Remove-AppxPackage -Package &lt;invalid packagefullname [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12],"tags":[],"class_list":["post-859","post","type-post","status-publish","format-standard","hentry","category-novosti","category-windows"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=859"}],"version-history":[{"count":2,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":865,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/859\/revisions\/865"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}