Jump to content


  • 0
Antda

Provisionning package (ppkg) in upgrade TS ?

Question

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

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.