Jump to content

Recommended Posts

Posted

Hello,

 

We have recently purchased new laptops, that has come with Windows 11 pre-built. I have noticed it ha social media apps installed. I have manually uninstalled them but when I login as another user they are back again!!

 

Can anyone provide me with details on what you did, to remove these. Our only problem is that we use the Snipping tool, Calculator, Photos app, Video app, Paint and Notepad, so I don't want them to be uninstalled.

 

Would be grateful for any help!

 

Thank you

Posted

code:

Get-AppxPackage –AllUsers | Select Name, PackageFullName

 

Create a PS script like this:

 

This is a windows 10 list, but it still works assuming you put the correct package names into it.

 

$AppsList = 
"Microsoft.MicrosoftOfficeHub", # Get Office
"Microsoft.SkypeApp", # Get Skype
"microsoft.windowscommunicationsapps", # Mail & Calendar
"Microsoft.People", # People
"Microsoft.CommsPhone", # Phone
"Microsoft.WindowsPhone", # Phone Companion
"Microsoft.XboxApp", # Xbox
"Microsoft.Messaging", # Messaging & Skype
"Microsoft.MicrosoftSolitaireCollection", # Microsoft Solitaire Collection
"Microsoft.BingWeather", #Microsoft Weather
"Microsoft.WindowsFeedbackHub", #FeedbackHub
"Microsoft.Office.OneNote", #OneNote
"Microsoft.3DBuilder", #3DBuilder
"Microsoft.WindowsMaps", # Maps
"Microsoft.WindowsAlarms", # Alarms
"Microsoft.WindowsCamera", # Camera - comment or remove this line for tablets
"Microsoft.GetStarted", # Getting Started
"Microsoft.ZuneMusic", #Zune
"Microsoft.ZuneVideo",
"Microsoft.XboxSpeechToTextOverlay", # Xbox
"Microsoft.XboxGameOverlay",
   "Microsoft.Xbox.TCUI",
   "Microsoft.XboxApp",
   "Microsoft.XboxGameOverlay",
   "Microsoft.XboxIdentityProvider", 
   "Microsoft.XboxSpeechToTextOverlay",
   "ThumbmunkeysLtd.PhototasticCollage",
"KeeperSecurityInc.Keeper",
"9E2F88E3.Twitter",
"king.com.CandyCrushSodaSaga",
   "King.com.BubbleWitch3Saga",
"Microsoft.BingNews",
   "Microsoft.BingSports",
   "Microsoft.BingFinance",
"flaregamesGmbH.RoyalRevolt2",
"Microsoft.MicrosoftStickyNotes", # Sticky Notes
   "Microsoft.OneConnect", # Paid wifi
   "CAF9E577.Plex",
   "89006A2E.AutodeskSketchBook",
   "A278AB0D.MarchofEmpires",
   "Microsoft.MinecraftUWP",
   "*Asphalt8Airborne*",
   "microsoft.onedrive",
   "microsoft.print3d",
   "microsoft.gethelp",
   "Microsoft.Microsoft3DViewer",
   "microsoft.wallet",
   "46928bounde.EclipseManager",
   "D5EA27B7.Duolingo-LearnLanguagesforFree",
   "Microsoft.NetworkSpeedTest",
   "Microsoft.Office.Sway",
   "Microsoft.MicrosoftPowerBIForWindows",
   "ActiproSoftwareLLC.562882FEEB491",
"A278AB0D.DisneyMagicKingdoms",
"A278AB0D.MarchofEmpires",	
   "WinZipComputing.WinZipUniversal",
"828B5831.HiddenCityMysteryofShadows"    

ForEach ($App in $AppsList)
{
$Packages = Get-AppxPackage | Where-Object {$_.Name -eq $App}
if ($Packages -ne $null)
{
	"Removing Appx Package: $App"

	foreach ($Package in $Packages) { Remove-AppxPackage -package $Package.PackageFullName }
}
else { "Unable to find package: $App" }

$ProvisionedPackage = Get-AppxProvisionedPackage -online | Where-Object {$_.displayName -eq $App}
if ($ProvisionedPackage -ne $null)
{
	"Removing Appx Provisioned Package: $App"
	remove-AppxProvisionedPackage -online -packagename $ProvisionedPackage.PackageName
}
else { "Unable to find provisioned package: $App" }
}

 

subbing in the names of the appx's from the first command you want to remove into the list. You can set that to run once as part of a deployment or on every startup as a scheduled task as cumulatives sometimes put stuff back in.

  • Thanks 3
  • 2 months later...
Posted

Hi,

 

I have followed steps from Microsoft here https://docs.microsoft.com/en-us/powershell/module/startlayout/export-startlayout?view=windowsserver2022-ps) I went to

Computer Configuration\Administrative Templates\Start Menu and Taskbar

and enetered the \\domain\Public\StartLayout.xml and applied to my test machine, I have done gpupdate/force restarted etc and it's still not pinning the apps to the Start Menu.

 

Any help would be great

 

Thank you

Posted

Any version of server 2016 onwards will do

 

I think the clients need to be on Enterprise though, which isn't a difficult task if you've got Enterprise available in volume licensing, just change the key

Posted

Please try the following Powershell to intrativly list and then selectivly remove UWP apps.

 

OS image apps

 

Get-AppxProvisionedPackage -online | Out-GridView -passthru | Remove-AppxProvisionedPackage -online

 

 

Provisioned apps

 

Get-AppxPackage -allusers | Out-GridView -passthru | Remove-AppxPackage -allusers

 

Note, only apps instlled in Program files can be removed.

  • 1 month later...
Posted

Hi,

 

Could somebody create me a PS script which I can assign as a GPO to unpin/uninstall on Windows 11. I have the package names.

 

Microsoft.WindowsStore (I set up a GPO to disable the store but hasn't worked, so would be good to be able to unpin from start)

Facebook.InstagramBeta

FACEBOOK.FACEBOOK

AmazonVideo.PrimeVideo

Clipchamp.Clipchamp

BytedancePte.Ltd.TikTok

Microsoft.XboxApp

Microsoft.MicrosoftSolitaireCollection

Microsoft.SkypeApp

 

Thank you

Posted

I'm not going to do it for you but doing something along the lines of the below should work:

 

Open up Notepad

Type in the following:

 

Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Application.Name | Remove-AppxProvisionedPackage -Online

 

Repeat for each app you want to remove.

Save the file as a .ps file

  • Thanks 1
Posted

Thank you :)

 

I'm not going to do it for you but doing something along the lines of the below should work:

 

Open up Notepad

Type in the following:

 

Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Application.Name | Remove-AppxProvisionedPackage -Online

 

Repeat for each app you want to remove.

Save the file as a .ps file

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...