dlhtox Posted October 17, 2022 Share Posted October 17, 2022 Hello, I want to remove all of the built-in apps and shortcuts .. it drives me crazy that there shortcuts to Disney and Spotify, etc. I am trying to use the following line in the Specialize pass under the Microsoft-Windows-Deployment section: <RunSynchronousCommand wcm:action="add"> <Description>Remove Built In Modern Apps</Description> <Order>4</Order> <Path>"c:\windows\system32\windowspowershell\v1.0\powershell.exe" -executionpolicy unrestricted -command "Get-AppxPackage -allusers | Remove-AppxPackage"</Path> </RunSynchronousCommand> It gets to a point where it says "Windows could not parse or process unattend answer file [c:\windows\panther\unattend.xml] for pass [specialize]. The answer file is invalid. It shows in Windows System Image Manager like this: If I need to call a .PS1 file to do this, that is okay, I was just hoping to keep it contained in a single line in the Unattend. Link to comment Share on other sites More sharing options...
Tripredacus Posted October 18, 2022 Share Posted October 18, 2022 It probably doesn't like the pipe. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now