Skip to content

Provisionning package (ppkg) in upgrade TS ?

Featured Replies

Hello everyone
After 4 days fighting with Upgrade task sequence, I don't know what to do anymore
 

As I can't use the custom Windows 10 image with OEM + Theme + Provisionned app removed in Upgrade task sequence I had to repeat the action within the Upgrade TS

 

I used the Provisioning packages for Windows 10 way, generated a PPKG & tried :

DISM /Online /Add-ProvisioningPackage /PackagePath:TOTO.ppkg
DISM /Image:%OSDISK%\ /Add-ProvisioningPackage /PackagePath:TOTO.ppkg
DISM.exe /Image=C:\  /Add-ProvisioningPackage /PackagePath:TOTO.ppkg

none working

So I tried the powershell way, executing my PS1 script from network share :

powershell.exe -ExecutionPolicy Bypass -Command ".\removedefaultapps.ps1"
 

 echo "Uninstalling default apps"
$apps = @(

"Microsoft.3DBuilder"
"Microsoft.Getstarted"
"Microsoft.Messaging"
"Microsoft.Microsoft3DViewer"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.MicrosoftStickyNotes"
"Microsoft.Office.OneNote"
"microsoft.windowscommunicationsapps"
"Microsoft.OneConnect"
"Microsoft.People"
"Microsoft.SkypeApp"
"Microsoft.StorePurchaseApp"
"Microsoft.WindowsFeedbackHub"
"Microsoft.WindowsPhone"
"Microsoft.WindowsStore"
"microsoft.windowscommunicationsapps"
"Microsoft.XboxApp"
"Microsoft.XboxGameOverlay"
"Microsoft.XboxIdentityProvider"
"Microsoft.XboxSpeechToTextOverlay"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"

)
 
foreach ($app in $apps) {
echo "Trying to remove $app"

 
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online |
where DisplayName -EQ $app |
Remove-AppxProvisionedPackage -Online
}

Doesn't work
If I run them (script OR PPKG) AFTER the tasks sequence (once logged in inside the upgraded computer) then it's working fine !

Any idea ?

Thanks
Antoine

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.