Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING HELP! Issue trying to Image our PC's

  • Thread starter Thread starter TrevorB
  • Start date Start date
  • Replies Replies 1
  • Views Views 667

TrevorB

Member
Messages
7
Reaction score
0
Points
1
Hi all,

I work for an Education establishment using SCCM we seem to be having issues Imaging (See attached log I had to use WinRAR as to big) I am hoping somebody can assist with this I have looked as best I can but I am not an SCCM expert so hoping somebodyout there can help with this.

Thank you in advance.

Trev.
 

Attachments

Looks to me like it's failing on a script where you are trying to remove default appx packages. I've been doing this for years in Win 10 and 11. Here's the script I use. You can modify the "AppsList" to your own liking.

## Configure the apps to be removed
$AppsList = "Microsoft.3DBuilder",
"Microsoft.BingWeather",
"Microsoft.GamingApp",
"Microsoft.Getstarted",
"Microsoft.Messaging",
"Microsoft.MicrosoftSolitaireCollection",
"MicrosoftTeams",
"Microsoft.OneConnect",
"Microsoft.People",
"Microsoft.windowscommunicationsapps",
"Microsoft.WindowsFeedbackHub",
"Microsoft.XboxApp",
"Microsoft.XboxGameOverlay",
"Microsoft.XboxGamingOverlay",
"Microsoft.XboxIdentityProvider",
"Microsoft.XboxSpeechToTextOverlay",
"Microsoft.Xbox.TCUI",
"Microsoft.YourPhone",
"Microsoft.ZuneMusic",
"Microsoft.ZuneVideo"

##Remove the Apps listed above or report if app not present
ForEach ($App in $AppsList)
{
$ProPackageFullName = (Get-AppxProvisionedPackage -Online | Where {$_.Displayname -eq $App}).PackageName

If ($ProPackageFullName) {
Write-Host "Removing Provisioned Package: $ProPackageFullName"
Remove-AppxProvisionedPackage -Online -PackageName $ProPackageFullName
}

Else {
Write-Verbose "Unable To Find Provisioned Package: $App"
}
}

## End
 
Back
Top