Search the Community
Showing results for tags 'Appx'.
-
Sysprep fails because of package Windows.ContactSupport [Build 14393]
tale posted a question in Windows 10
I'm doing a quick build and capture with Windows 10 Build 14393 (1607) in which I have a script that removes some of the default installed apps. It's being done with System Center. In regards to the Contact app, it's now able to be uninstalled as a package. $Packages = (Get-WindowsPackage -Online).PackageName ForEach ($Package in $Packages) { If ($Package -like "*ContactSupport*") { Remove-WindowsPackage -Online -PackageName "$Package" -NoRestart } } It is removed with no issues, won't appear in the start menu for any users, but Sysprep will fail because of it. [setuperr.log] Failed to remove staged package Windows.ContactSupport_10.0.14393_......... Failed to remove apps for the current user: 0x80070002 When I log in to the VM after it fails, Windows.ContactSupport only appears if I run "Get-AppxPackage -AllUsers" where it says it's still staged {S-1-5-18 [s-1-5-18]: Staged} by NT AUTHORITY\SYSTEM If I even try to run powershell.exe as SYSTEM and now try Remove-AppxPackage it just fails like it used to and can't be resolved. Has anyone run in to this and able to fix it? Or should I just stop trying to remove "Contact Support" and leave it like the last Windows 10 OS builds had to be?- 2 replies
-
- Sysprep
- Build and Capture
-
(and 2 more)
Tagged with:
-
Hello, I have sourced a powershell script which removes Windows 8.1 applications and the tile ( appx ) If I run the script manually on a client the script runs and removes the application tile from the metro screen. I have altered the script a few times to remove multiple application tiles at once and that worked fine as well. I have created a program in SCCM 2012 and deployed to a client. The EXECMGR log file tells me the script is received by the client and has run successfully, exit code = 0, the execution status is Success. But I can still see the tile on the metro screen and the app content in c:\program files\windows apps The script is as below - $AppsToDelete="*Microsoft.WindowsReadingList*" Foreach ($AppName in $AppsToDelete) { get-appxprovisionedpackage -online | where packagename -like $AppName | remove-appxprovisionedpackage -Online Get-AppxPackage -name $AppName -allusers | Remove-AppxPackage } The program used by SCCM2012 to execute the script is as follows - PowerShell.exe -ExecutionPolicy UnRestricted -File .\delappsreadinglistonly.ps1 Can anyone offer clues or pointers about what to do next ? My skills with Powershell are minimal ! Thanks...
- 2 replies
-
- windows 8.1
- sccm 2012
-
(and 2 more)
Tagged with: