/bundles/itninjaweb/img/Breadcrumb_cap_w.png

I have been trying to get Kace k1000 to update our Windows 10 machines to version 1703. I know this isn't the latest build but it's the latest one that works with our applications. I have a managed install that performs in place upgrades without having to reimage the machines or having to have anyone logged on to the machine. The problem is xbox and all the other naughty apps we don't want are installed with the update. I figured out how to remove them from all users but so far it requires me to login to each machine and run a batch file from an administrator command prompt. Needless to say I would like to have Kace do this for me. Below is the latest script I have in Kace, It's pretty much my bat file just entered into Kace scripting module. Below the screen shot of the script is the output window. Does anyone have any ideas for how I can get kace to remove these apps?



Output Log

Running with credntials provided: domain [bmt] user [Redacted]
Directory DOES exist: C:\WINDOWS
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.AAD.BrokerPlugin_1000.14393.0.0_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy failed. This app is part of
Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the
app from the computer using Turn Windows Features on or off. However, it may not be possible to
uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-6b75-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-6b75-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.AAD.B...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.BioEnrollment_10.0.14393.0_neutral__cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.BioEnrollment_cw5n1h2txyewy failed. This app is part of Windows
and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app
from the computer using Turn Windows Features on or off. However, it may not be possible to
uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0006-ad8f-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0006-ad8f-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.BioEn...__cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.Windows.ContentDeliveryManager_10.0.14393.0_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy failed. This app is
part of Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to
remove the app from the computer using Turn Windows Features on or off. However, it may not be
possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0006-b38f-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0006-b38f-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.Windo...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.Windows.Cortana_1.7.0.14393_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy failed. This app is part of Windows
and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app
from the computer using Turn Windows Features on or off. However, it may not be possible to
uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0006-b98f-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0006-b98f-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.Windo...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.Windows.SecondaryTileExperience_10.0.0.0_neutral__cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.Windows.SecondaryTileExperience_cw5n1h2txyewy failed. This app is
part of Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to
remove the app from the computer using Turn Windows Features on or off. However, it may not be
possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0006-bb8f-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0006-bb8f-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.Windo...__cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.XboxGameCallableUI_1000.14393.0.0_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.XboxGameCallableUI_cw5n1h2txyewy failed. This app is part of
Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the
app from the computer using Turn Windows Features on or off. However, it may not be possible to
uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0006-c18f-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0006-c18f-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.XboxG...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
windows.immersivecontrolpanel_6.2.0.0_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\ImmersiveControlPanel failed. This app is part of Windows and cannot be uninstalled on
a per-user basis. An administrator can attempt to remove the app from the computer using Turn
Windows Features on or off. However, it may not be possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0006-c38f-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0006-c38f-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (windows.immersi...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy from: C:\Windows\MiracastView failed.
This app is part of Windows and cannot be uninstalled on a per-user basis. An administrator can
attempt to remove the app from the computer using Turn Windows Features on or off. However, it
may not be possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0006-c58f-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0006-c58f-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Windows.Miracas...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Windows.PrintDialog_6.2.0.0_neutral_neutral_cw5n1h2txyewy from: C:\Windows\PrintDialog failed.
This app is part of Windows and cannot be uninstalled on a per-user basis. An administrator can
attempt to remove the app from the computer using Turn Windows Features on or off. However, it
may not be possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-7075-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-7075-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Windows.PrintDi...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070003: Reading manifest from location: AppxManifest.xml failed with error: The system
cannot find the path specified.
.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-7175-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-7175-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.NET.N...__8wekyb3d8bbwe:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070003: Reading manifest from location: AppxManifest.xml failed with error: The system
cannot find the path specified.
.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-7375-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-7375-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.NET.N...__8wekyb3d8bbwe:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates,
dependency or conflict validation.
Windows cannot remove framework Microsoft.NET.Native.Runtime.1.3_1.3.23901.0_x64__8wekyb3d8bbwe
because package(s) Microsoft.XboxIdentityProvider Microsoft.OneConnect currently depends on the
framework. Removing all packages that depend on the framework automatically removes the framework.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-7975-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-7975-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.NET.N...__8wekyb3d8bbwe:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates,
dependency or conflict validation.
Windows cannot remove framework Microsoft.NET.Native.Runtime.1.3_1.3.23901.0_x86__8wekyb3d8bbwe
because package(s) Microsoft.XboxIdentityProvider Microsoft.OneConnect currently depends on the
framework. Removing all packages that depend on the framework automatically removes the framework.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0004-0bdc-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0004-0bdc-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.NET.N...__8wekyb3d8bbwe:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates,
dependency or conflict validation.
Windows cannot remove framework Microsoft.VCLibs.140.00_14.0.25426.0_x64__8wekyb3d8bbwe because
package(s) Microsoft.Messaging Microsoft.XboxSpeechToTextOverlay Microsoft.XboxIdentityProvider
Microsoft.3DBuilder Microsoft.MicrosoftStickyNotes Microsoft.WindowsAlarms
Microsoft.WindowsCalculator Microsoft.OneConnect Microsoft.WindowsSoundRecorder Microsoft.People
Microsoft.WindowsMaps Microsoft.ZuneMusic Microsoft.Microsoft3DViewer
Microsoft.WindowsFeedbackHub Microsoft.XboxGameOverlay Microsoft.MSPaint Micro
Windows cannot remove framework Microsoft.VCLibs.140.00_14.0.25426.0_x64__8wekyb3d8bbwe because
package(s) Microsoft.Messaging Microsoft.XboxSpeechToTextOverlay Microsoft.XboxIdentityProvider
Microsoft.3DBuilder Microsoft.MicrosoftStickyNotes Microsoft.WindowsAlarms
Microsoft.WindowsCalculator Microsoft.OneConnect Microsoft.WindowsSoundRecorder Microsoft.People
Microsoft.WindowsMaps Microsoft.ZuneMusic Microsoft.Microsoft3DViewer
Microsoft.WindowsFeedbackHub Microsoft.XboxGameOverlay Microsoft.MSPaint Microsoft.Getstarted
Microsoft.Office.OneNote Microsoft.SkypeApp Microsoft.WindowsCamera Microsoft.ZuneVideo
Microsoft.XboxApp Microsoft.BingWeather Microsoft.MicrosoftSolitaireCollection currently depends
on the framework. Removing all packages that depend on the framework automatically removes the
framework.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-7e75-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-7e75-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.VCLib...__8wekyb3d8bbwe:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates,
dependency or conflict validation.
Windows cannot remove framework Microsoft.VCLibs.140.00_14.0.25426.0_x86__8wekyb3d8bbwe because
package(s) Microsoft.Messaging Microsoft.XboxSpeechToTextOverlay Microsoft.XboxIdentityProvider
Microsoft.3DBuilder Microsoft.MicrosoftStickyNotes Microsoft.WindowsAlarms
Microsoft.WindowsCalculator Microsoft.OneConnect Microsoft.WindowsSoundRecorder Microsoft.People
Microsoft.WindowsMaps Microsoft.ZuneMusic Microsoft.Microsoft3DViewer
Microsoft.WindowsFeedbackHub Microsoft.XboxGameOverlay Microsoft.MSPaint Micro
Windows cannot remove framework Microsoft.VCLibs.140.00_14.0.25426.0_x86__8wekyb3d8bbwe because
package(s) Microsoft.Messaging Microsoft.XboxSpeechToTextOverlay Microsoft.XboxIdentityProvider
Microsoft.3DBuilder Microsoft.MicrosoftStickyNotes Microsoft.WindowsAlarms
Microsoft.WindowsCalculator Microsoft.OneConnect Microsoft.WindowsSoundRecorder Microsoft.People
Microsoft.WindowsMaps Microsoft.ZuneMusic Microsoft.Microsoft3DViewer
Microsoft.WindowsFeedbackHub Microsoft.XboxGameOverlay Microsoft.MSPaint Microsoft.Getstarted
Microsoft.Office.OneNote Microsoft.SkypeApp Microsoft.WindowsCamera Microsoft.ZuneVideo
Microsoft.XboxApp Microsoft.BingWeather Microsoft.MicrosoftSolitaireCollection currently depends
on the framework. Removing all packages that depend on the framework automatically removes the
framework.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-7f75-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-7f75-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.VCLib...__8wekyb3d8bbwe:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.Windows.ShellExperienceHost_10.0.14393.2068_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy failed. This app is part of Windows and
cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app from
the computer using Turn Windows Features on or off. However, it may not be possible to uninstall
the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0005-3462-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0005-3462-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.Windo...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.AccountsControl_10.0.14393.2068_neutral__cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.AccountsControl_cw5n1h2txyewy failed. This app is part of Windows
and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app
from the computer using Turn Windows Features on or off. However, it may not be possible to
uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-8875-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-8875-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.Accou...__cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.LockApp_10.0.14393.2068_neutral__cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.LockApp_cw5n1h2txyewy failed. This app is part of Windows and
cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app from
the computer using Turn Windows Features on or off. However, it may not be possible to uninstall
the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-8975-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-8975-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.LockA...__cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.MicrosoftEdge_38.14393.2068.0_neutral__8wekyb3d8bbwe from:
C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe failed. This app is part of Windows
and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app
from the computer using Turn Windows Features on or off. However, it may not be possible to
uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-8a75-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-8a75-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.Micro...__8wekyb3d8bbwe:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.PPIProjection_10.0.14393.2068_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.PPIProjection_cw5n1h2txyewy failed. This app is part of Windows
and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app
from the computer using Turn Windows Features on or off. However, it may not be possible to
uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-8b75-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-8b75-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.PPIPr...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.Windows.Apprep.ChxApp_1000.14393.2125.0_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.Windows.AppRep.ChxApp_cw5n1h2txyewy failed. This app is part of
Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the
app from the computer using Turn Windows Features on or off. However, it may not be possible to
uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-8c75-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-8c75-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.Windo...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.Windows.AssignedAccessLockApp_1000.14393.2068.0_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.Windows.AssignedAccessLockApp_cw5n1h2txyewy failed. This app is
part of Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to
remove the app from the computer using Turn Windows Features on or off. However, it may not be
possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 17b83911-e8e9-0000-8d75-b817e9e8d301 in
the Event Log or use the command line Get-AppxLog -ActivityID 17b83911-e8e9-0000-8d75-b817e9e8d301
At line:1 char:29
+ Get-AppXPackage -allusers | Remove-AppxPackage
+                             ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (Microsoft.Windo...l_cw5n1h2txyewy:String) [Remove-Appx
Package], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.Remo
veAppxPackageCommand
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact
your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package
Microsoft.Windows.CloudExperienceHost_10.0.14393.1066_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy failed. This app is
part of Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to
remove the app from the computer using Turn Windows Features on or off. However, it may not be
possible to uninstall the app.


Activity Log

verify - directory_exists
Checking if directory exists: C:\WINDOWS
verify - on_verify_success
verify - on_verify_failure
verify - launch_program
Launching program: 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\Powershell.exe' 'Get-AppXPackage -allusers | Remove-AppxPackage' wait='true'


Debug

Running kbot: runkbot 1149 1526048295
KBotScript::LogScriptInfo - Start
id=1149 name=Win10updateCleanup version=1526048295 type=policy
execute disconnected=false logged_off=true
execute events
KBotScript::LogScriptInfo - Finish
KBotScript::LogScriptInfo - Start
id=1149 name=Win10updateCleanup version=1526048295 type=policy
execute disconnected=false logged_off=true
execute events
KBotScript::LogScriptInfo - Finish
runkbot    ----- launching [path='C:\WINDOWS\System32\WindowsPowerShell\v1.0' program='Powershell.exe' parms='Get-AppXPackage | Remove-AppxPackage' wait='false'] -----
runkbot    ----- completed [exitCode=0] -----
runkbot    ----- launching [path='C:\WINDOWS\System32\WindowsPowerShell\v1.0' program='Powershell.exe' parms='Get-AppXPackage -allusers | Remove-AppxPackage' wait='false'] -----
runkbot    ----- completed [exitCode=0] -----
runkbot    ----- launching [path='C:\WINDOWS\System32\WindowsPowerShell\v1.0' program='Powershell.exe' parms='Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online' wait='false'] -----
runkbot    ----- completed [exitCode=0] -----
runkbot    ----- launching [path='C:\WINDOWS\System32\WindowsPowerShell\v1.0' program='Powershell.exe' parms='Get-AppxPackage | % {if (!($_.IsFramework -or $_.PublisherId -eq "cw5n1h2txyewy")) {$_}} | Remove-AppxPackage' wait='false'] -----
runkbot    ----- completed [exitCode=0] -----

Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

2
You will need to use a Powershell script, and set it up as the Method 2 described here:
https://support.quest.com/kace-systems-management-appliance/kb/138389/powershell-script-from-the-k1000

Don't forget that when you are running the BAT file, you are doing it as a user account with admin rights, KACE by default runs as SYSTEM, you may need more permissions to perform such actions as remvoing Apps from Windows.
Answered 05/11/2018 by: Channeler
Tenth Degree Black Belt

  • Thank you I will try that and I am using an admin account as opposed to allowing it to run as system. I'll let you know how it goes.
  • Is there a way for me to post attachments? I tried Method 1 from the link you posted and it's still not working. Nothing is uninstalled and I am using admin crdentials
    • I said Method #2,

      You may want to use pastebin or imgur links to post text or screeshot
      • I tried method 2 and I am still having problems with it not wanting to run. Kace reports it ran the script successfully but the apps remain. I have a help ticket in on this. Thanks for the suggestions If I ever get this working I will post the answer so it may help others.

All Answers

0
Best way to do it is to make your own wim file with all the modification you want.

You can install windows  on a VM make the modification and sysprep it.

Once done you create a wim file out of that drive, and replace the install.wim in the source folder of the win 10 iso with the wim file you created after sysprep. This will make sure you don't have to do anything after upgrading a machine specially if you have hundreds of them. 

It will greatly reduce the risk of errors in removing provisioned apps on the fly during installation and you know what your image will look like every time you install it.

Another great tool that i found very useful was NTLite 
Give NTLite a try, you can greatly customize wim files with NTLite.

Hope this addresses your situation.
Answered 05/15/2018 by: PortZero
Senior White Belt

  • That would be the best method but...

    Let's say you did that for 1709, and you have your golden image without non-business apps captured.

    You deploy it... and a week after that, the machine gets the 1803 upgrade... I believe those apps might come back.... this is what the @kallun might be facing
    • Yes, but instead of doing it on every image you can write the script to do it on every release.

      I have a script that i worked out and when i want to change the source i run it on the vm that automates all the tasks that one would manually do, that includes removing unwanted provisioned app packages.

      You only have to do it once, and after all you never know if by changing the source your previous script is going to work flawlessly.

      In my case, i test the vm for changes and see if all settings have applied properly.

      I am not saying this must be the case for all however it is still worth the effort.


      Try this, it will get rid of most of the apps, i haven't done 1803 yet but the below was for 1709:

      Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage
      Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
      Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage
      Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage
      Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage
      Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage
      Get-AppxPackage Microsoft.People | Remove-AppxPackage
      Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage
      Get-AppxPackage Microsoft.Wallet | Remove-AppxPackage
      Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage
      Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
      Get-AppxPackage Microsoft.XboxGameOverlay | Remove-AppxPackage
      Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage
      Get-AppxPackage Microsoft.XboxSpeechToTextOverlay | Remove-AppxPackage
      Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage
      Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.BingWeather_4.18.56.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.Messaging_3.2.24002.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.MicrosoftOfficeHub_2017.311.255.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.MicrosoftSolitaireCollection_3.14.1181.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.Office.OneNote_2015.7668.58071.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.OneConnect_2.1701.277.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.People_2017.222.1920.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.SkypeApp_11.8.204.0_neutral_~_kzf8qxf38zg5c"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.Wallet_1.0.16328.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.WindowsMaps_2017.209.105.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.XboxApp_2017.113.1250.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.XboxGameOverlay_1.15.2003.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.XboxIdentityProvider_2016.719.1035.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.XboxSpeechToTextOverlay_1.14.2002.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.ZuneMusic_2019.16112.11621.0_neutral_~_8wekyb3d8bbwe"
      Remove-ProvisionedAppxPackage -Online -PackageName "Microsoft.ZuneVideo_2019.16112.11601.0_neutral_~_8wekyb3d8bbwe"
      • this is similar if not exactly what my script looks like. I'm trying to get Kace to run PowerShell and have it call a ps1 file with those parameters in there.