Skip to main content

Uninstall Microsoft Solitaire Collection using a PowerShell script deployed with Intune (Windows 11)


Uninstall Microsoft Solitaire Collection using Microsoft Store app (new)

The easiest way to remove unwanted Store apps from Windows 11 is to create an Intune Store app and set it to uninstall

solitaire and casual games

When adding a Store app in Intune, you can search for Store apps in Intune by name or App ID

However, for Solitaire: searching for “Solitaire”, “Microsoft” or the App ID doesn’t show the App

search ms store app solitaire 

Uninstall Microsoft.MicrosoftSolitaireCollection App

Get Solitaire package name using PowerShell Get-AppxPackage

# Get Solitaire appx package name
Get-AppxPackage -Name *solitaire*

Copy the package name "Microsoft.MicrosoftSolitaireCollection"

get appxpackage

Remove Solitaire using PowerShell Remove-AppxPackage

remove-solitaire.ps1 

# Remove Solitaire appx package for the current user
Get-AppxPackage -Name Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage -ErrorAction SilentlyContinue
 

Remove Solitaire Collection using Intune (Platform script)

Intune admin center
Devices - Windows - Scripts and remediations
Platform scripts - Add

add platform script 

Script Basics

Name: Remove Solitaire

script name 

Script settings

Script location: select remove-solitaire.ps1
Run this script using the logged on credentials: Yes
Enforce script signature check: No
Run script in 64 bit PowerShell Host: No

script settings 

Assignments

Assign to a test group

assignments 

 

 remove solitaire platform script

1000 Characters left



Filter articles by tag