{"id":8578,"date":"2025-02-11T02:28:09","date_gmt":"2025-02-11T02:28:09","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=8578"},"modified":"2025-08-21T02:57:45","modified_gmt":"2025-08-21T02:57:45","slug":"avd-sysprep","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/avd-sysprep","title":{"rendered":"AVD SysPrep"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\">%WINDIR%\\system32\\sysprep\\sysprep.exe \/generalize \/shutdown \/oobe\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Run Get-AppxPackage -AllUser | Remove-AppxPackage (Don\u2019t mind the wall of blood)\n\nRun Get-AppxPackage -AllUser | Remove-AppxProvisionedPackage -Online (Don\u2019t mind the wall of blood)<\/code><\/pre>\n\n\n\n<p>C:\\Windows\\System32\\Sysprep\\Panther\\setupact.log<\/p>\n\n\n\n<p>Remove-appxpackage -AllUsers Microsoft.BingNews_4.21.2212.0_x64__8wekyb3d8bbwe<\/p>\n\n\n\n<p>Get-AppxPackage -alluser | Where PublisherId -eq 8wekyb3d8bbwe | Where-Object {$_.PackageFullName -like &#8220;Microsoft.Ink.Handwriting.Main.en*&#8221;} | Remove-AppxPackage -AllUsers<\/p>\n\n\n\n<p>I was able to uninstall an app like this:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to&nbsp;<code>KEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\Applications\\<\/code>. Look for the app&#8217;s package name<\/li>\n\n\n\n<li>Backup the key (right click, export)<\/li>\n\n\n\n<li>Re\/run the&nbsp;<code>Remove-AppxPackage -Package &lt;package-name&gt; -AllUsers<\/code>&nbsp;command<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Import-Module Appx\nImport-Module Dism\n\n# Get all packages  Where PublisherId -eq 8wekyb3d8bbwe and remove them\nGet-AppxPackage -AllUsers | Where PublisherId -eq 8wekyb3d8bbwe | Remove-AppxPackage\n\n# Get all packages from DISM\n$packages = dism \/online \/get-packages\n\n# Filter packages containing 'handwriting'\n$targetPackages = $packages -split \"`r`n\" | Where-Object { $_ -like \"*handwriting*\" }\n\n# Extract package names\n$packageNames = $targetPackages | ForEach-Object {\n    if ($_ -match \"Package Identity : (?&lt;name&gt;.*)\") {\n        $Matches.name.trim()\n    }\n}\n\n# Remove each identified package\nforeach ($pkg in $packageNames) {\n    if ($pkg) {\n        Write-Host \"Removing package: $pkg\"\n        dism \/online \/remove-package \/packagename:$pkg \/NoRestart\n    }\n}\n\nWrite-Host \"Done removing packages.\"<\/code><\/pre>\n\n\n\n<p><code>2025-08-21 12:51:19, Error SYSPRP BitLocker-Sysprep: BitLocker is on for the OS volume. Turn BitLocker off to run Sysprep. (0x80310039)<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><\/h3>\n\n\n\n<p>manage-bde -status<\/p>\n\n\n\n<p><code>manage-bde -off C:<\/code><br><br><br><code>manage-bde -off D:<\/code><br><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C:\\Windows\\System32\\Sysprep\\Panther\\setupact.log Remove-appxpackage -AllUsers Microsoft.BingNews_4.21.2212.0_x64__8wekyb3d8bbwe Get-AppxPackage -alluser | Where PublisherId -eq 8wekyb3d8bbwe | Where-Object {$_.PackageFullName -like &#8220;Microsoft.Ink.Handwriting.Main.en*&#8221;} | Remove-AppxPackage -AllUsers I was able to uninstall an app like [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8578","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=8578"}],"version-history":[{"count":6,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8578\/revisions"}],"predecessor-version":[{"id":9169,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8578\/revisions\/9169"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=8578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=8578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=8578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}