Jump to content

Recommended Posts

Posted (edited)

Hi all,

 

I'm just finishing off our new Windows 10 1809 Education image but have a few minor things outstanding.

 

Untitled.jpg

 

1) How do I disable the Microsoft store? I have run the powershell command "Get-AppxPackage *windowsstore* | Remove-AppxPackage" but it keeps coming back when users login. Can it be blocked with a web filter at all?

 

2) How do I remove the orphaned start menu items for the old store apps above in the screenshot? I already removed them with powershell but the links remain on new users start menus.

 

3) Every time windows launches with a new local profile it comes up with an error message about not being able to create a shortcut on the deskop. Our desktops are redirected and read-only, so how do I prevent this message popping up on first login for users?

 

4) Lastly, how do I change the logon image? I've clicked the option "show lockscreen background picture" in settings >> lockscreen but it still shows the default windows 10 backgrounds :(

Edited by supportman
Posted
1) Applocker is best I think. Removal is drastic (and what I did, but I did it in the WIM) 2) Redirected Start Menu with a specified Start layout XML file should short that (did for me). 3) What shortcut is it trying to create? Some software will try this trick on - you may need to either put that shortcut there yourself, or modify the software so it doesn't try to do this. 3) Some have had this just work, others (like us) have had to hammer away at the OS to get the image to change. I have a GPO which takes ownership of the images folder, deletes the images, deletes the reg keys setting the images, then sets the image via GP. That was the only way I got it to work!
Posted

Hi @supportman

 

We've just (today) completed our 1809 build and it is flying onto machines as I type.

 

1. Removal of the Store

We elected to leave this one on, but set GPO to disable access to it. This means that when a user (staff or student) opens it, no store is loaded.

We did this because we still wanted some of the store controlled apps (StickNotes, Snip&Sketch, Calculator) to be managed with the store service.

We have actually now improved this by GPO only allowing access to the Organisation (School) store. This means that if a user now signs in, they only see the 5 or so apps that we actually want them to use.

However, in your script quoted, I think you need to may need to specify Microsoft.WindowsStore instead of *windowsstore* AND you need to use -name before. It should look like this:

Get-AppxPackage -Name *windowsstore* | Remove-AppxPackage

We also run an additional command for each bloatware like this:

Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *windowsstore* | Remove-AppxProvisionedPackage -Online

This should work for you.

 

2. We do this in the same script as above, running for each bloatware we want to remove, e.g.:

Pin-App Microsoft.BingNews -Unpin

 

3. Not sure about this one

 

4. Login image.

We had loads of trouble with this. The solution ended up being quite simple.

Assuming you have the image somewhere network or locally (we have gone for a local copy), and that you have Computer GPOs set up correctly identifying the logon image...

The needle in the haystack was... (drumroll)

We were using a Pro license! It MUST be either an enterprise or education license key to work.

 

Hope this helps.

  • Thanks 1
Posted (edited)

Yes, no problem.

 

We only run the script at the end off the MDT task sequence when we build a machine -it does not run when a user logs in.

 

[i should point out that I am aware of other far more sophisticated scripts, and also ways to simplify our script but as a scripting apprentice, this way made much more sense to us... and it worked!]

 

#Revome Bloatware commands 1
Get-AppxPackage -Name Microsoft.BingNews | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.GetHelp | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Getstarted | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Messaging | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Microsoft3DViewer | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.MicrosoftOfficeHub | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.NetworkSpeedTest | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.News | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Office.Lens | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.OneConnect | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.People | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Print3D | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.RemoteDesktop | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.SkypeApp | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.WindowsAlarms | Remove-AppxPackage
Get-AppxPackage -Name microsoft.windowscommunicationsapps | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.WindowsFeedbackHub | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.WindowsMaps | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.WindowsSoundRecorder | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Xbox.TCUI | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxApp | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxGameOverlay | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxIdentityProvider | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxSpeechToTextOverlay | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.ZuneMusic | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.ZuneVideo | Remove-AppxPackage
Get-AppxPackage -Name *EclipseManager* | Remove-AppxPackage
Get-AppxPackage -Name *ActiproSoftwareLLC* | Remove-AppxPackage
Get-AppxPackage -Name *AdobeSystemsIncorporated.AdobePhotoshopExpress* | Remove-AppxPackage
Get-AppxPackage -Name *Duolingo-LearnLanguagesforFree* | Remove-AppxPackage
Get-AppxPackage -Name *PandoraMediaInc* | Remove-AppxPackage
Get-AppxPackage -Name *CandyCrush* | Remove-AppxPackage
Get-AppxPackage -Name *Wunderlist* | Remove-AppxPackage
Get-AppxPackage -Name *Flipboard* | Remove-AppxPackage
Get-AppxPackage -Name *Twitter* | Remove-AppxPackage
Get-AppxPackage -Name *Facebook* | Remove-AppxPackage
Get-AppxPackage -Name *Spotify* | Remove-AppxPackage
Get-AppxPackage -Name *Minecraft* | Remove-AppxPackage
Get-AppxPackage -Name *Royal Revolt* | Remove-AppxPackage
Get-AppxPackage -Name *Dolby* | Remove-AppxPackage
Get-AppxPackage -Name *Windows.CBSPreview* | Remove-AppxPackage
Get-AppxPackage -Name *Phone* | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxGamingOverlay | Remove-AppxPackage

#Remove Bloatware commands 2 - Removes future installs
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.BingNews | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.GetHelp | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Getstarted | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Messaging | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Microsoft3DViewer | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.MicrosoftOfficeHub | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.MicrosoftSolitaireCollection | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.NetworkSpeedTest | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.News | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Office.Lens | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.OneConnect | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.People | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Print3D | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.RemoteDesktop | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.SkypeApp | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsAlarms | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like microsoft.windowscommunicationsapps | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsFeedbackHub | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsMaps | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsSoundRecorder | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Xbox.TCUI | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxApp | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxGameOverlay | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxIdentityProvider | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxSpeechToTextOverlay | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.ZuneMusic | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.ZuneVideo | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *EclipseManager* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *ActiproSoftwareLLC* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *AdobeSystemsIncorporated.AdobePhotoshopExpress* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Duolingo-LearnLanguagesforFree* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *PandoraMediaInc* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *CandyCrush* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Wunderlist* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Flipboard* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Twitter* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Facebook* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Spotify* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Minecraft* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Royal Revolt* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Dolby* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Windows.CBSPreview* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Phone* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxGamingOverlay | Remove-AppxProvisionedPackage -Online

#Fixes Whiteboard and Sway
Add-AppxProvisionedPackage -Online -PackagePath "c:\PGS\GPO Folder\StoreApps\Microsoft.Office.Sway_18.1711.50601.0_neutral___8wekyb3d8bbwe.AppxBundle" –LicensePath "c:\PGS\GPO Folder\StoreApps\Microsoft.Office.Sway_8wekyb3d8bbwe_8f700a8e-3731-b777-a6dd-000fe1f8fcb2.xml"
Add-AppxProvisionedPackage -Online -PackagePath "c:\PGS\GPO Folder\StoreApps\Microsoft.Whiteboard_19.10422.3487.0_x64__8wekyb3d8bbwe.AppxBundle" –LicensePath "c:\PGS\GPO Folder\StoreApps\Microsoft.Whiteboard_8wekyb3d8bbwe_fe0ac9df-1dfe-da54-be0b-c2e9cbc73355.xml"

#Installs once for admin user
Get-AppxPackage -allusers Microsoft.MSPaint | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.WindowsCalculator | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.MicrosoftStickyNotes | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.Office.OneNote | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.Whiteboard | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.Office.Sway | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.Screensketch | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

#Unpin all apps from start menu
Pin-App Microsoft.BingNews -Unpin
Pin-App Microsoft.GetHelp -Unpin
Pin-App Microsoft.Getstarted -Unpin
Pin-App Microsoft.Messaging -Unpin
Pin-App Microsoft.Microsoft3DViewer -Unpin
Pin-App Microsoft.MicrosoftOfficeHub -Unpin
Pin-App Microsoft.MicrosoftSolitaireCollection -Unpin
Pin-App Microsoft.NetworkSpeedTest -Unpin
Pin-App Microsoft.News -Unpin
Pin-App Microsoft.Office.Lens -Unpin
Pin-App Microsoft.OneConnect -Unpin
Pin-App Microsoft.People -Unpin
Pin-App Microsoft.Print3D -Unpin
Pin-App Microsoft.RemoteDesktop -Unpin
Pin-App Microsoft.SkypeApp -Unpin
Pin-App Microsoft.WindowsAlarms -Unpin
Pin-App microsoft.windowscommunicationsapps -Unpin
Pin-App Microsoft.WindowsFeedbackHub -Unpin
Pin-App Microsoft.WindowsMaps -Unpin
Pin-App Microsoft.WindowsSoundRecorder -Unpin
Pin-App Microsoft.Xbox.TCUI -Unpin
Pin-App Microsoft.XboxApp -Unpin
Pin-App Microsoft.XboxGameOverlay -Unpin
Pin-App Microsoft.XboxIdentityProvider -Unpin
Pin-App Microsoft.XboxSpeechToTextOverlay -Unpin
Pin-App Microsoft.ZuneMusic -Unpin
Pin-App Microsoft.ZuneVideo -Unpin
Pin-App *EclipseManager* -Unpin
Pin-App *ActiproSoftwareLLC* -Unpin
Pin-App *AdobeSystemsIncorporated.AdobePhotoshopExpress* -Unpin
Pin-App *Duolingo-LearnLanguagesforFree* -Unpin
Pin-App *PandoraMediaInc* -Unpin
Pin-App *CandyCrush* -Unpin
Pin-App *Wunderlist* -Unpin
Pin-App *Flipboard* -Unpin
Pin-App *Twitter* -Unpin
Pin-App *Facebook* -Unpin
Pin-App *Spotify* -Unpin
Pin-App *Minecraft* -Unpin
Pin-App *Royal Revolt* -Unpin
Pin-App *Dolby* -Unpin
Pin-App *Windows.CBSPreview* -Unpin
Pin-App *Phone* -Unpin
Pin-App Microsoft.XboxGamingOverlay -Unpin 

 

Hope that this is of use to you.

 

We also have a separate script to stop Edge from taking over e.g. pdf files.

Edited by mobrien
  • Thanks 1
Posted
Any other ideas on how to change the lock screen image? Still cant get it to work :(

 

In a Group Policy Object targeting machines... Go to Computer Configuration -> Policies -> Administrative Templates -> Control Panel -> Personalization -> Force a specific default lock screen and logon image, and enable the policy, specifying the location as the file you wish to use. (For example C:\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg).

Posted
...

4. Login image.

We had loads of trouble with this. The solution ended up being quite simple.

Assuming you have the image somewhere network or locally (we have gone for a local copy), and that you have Computer GPOs set up correctly identifying the logon image...

The needle in the haystack was... (drumroll)

We were using a Pro license! It MUST be either an enterprise or education license key to work.

 

Hope this helps.

 

That's what annoys me about the versioning of Windows 10. Some features e.g. like Bitlocker being only in certain versions I'd understand.

 

What small business is going to have Enterprise licencing instead of Professional? We've had problems with GPOs with Pro v Enterprise version of Windows 7 in the past playing up.

Posted
That's what annoys me about the versioning of Windows 10. Some features e.g. like Bitlocker being only in certain versions I'd understand.

 

What small business is going to have Enterprise licencing instead of Professional? We've had problems with GPOs with Pro v Enterprise version of Windows 7 in the past playing up.

 

Err... Windows 10 Professional can be Bitlockered. ;)

Posted
Err... Windows 10 Professional can be Bitlockered. ;)

 

:D To clarify the example I meant was when Windows 7 came out and Bitlocker wasn't available in Professional, only in Ultimate and Enterprise - that kind of thinking I could understand. Some kind of feature reservation thing. It just seems a lot of Windows 10 features are being nerfed.

  • Thanks 1
Posted
In a Group Policy Object targeting machines... Go to Computer Configuration -> Policies -> Administrative Templates -> Control Panel -> Personalization -> Force a specific default lock screen and logon image, and enable the policy, specifying the location as the file you wish to use. (For example C:\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg).

 

Perfect! thanks a local policy fixed that nicely. I put the image in C:\Windows\Web\Screen\newbackground.jpg. Hopefully it doesnt get overwritten on windows updates!!

Posted

Number 3) is caused by Windows attempting to create a Microsoft Edge shortcut on the user's desktop on first login (I believe this behaviour was introduced in 1803). You can prevent it from doing this via setting the following registry key in a script/group policy:

 

[color=#373737]Key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer[/color]
[color=#373737]Value: DisableEdgeDesktopShortcutCreation[/color]
[color=#373737]Data: 1[/color]
[color=#373737]Type: REG_DWORD[/color]

If you're using MDT or SCCM to build your image then the easiest way is to create a 'Run Command Line' step in your task sequence and provide the following command:

[color=#373737][font=&amp]reg.exe add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer /v DisableEdgeDesktopShortcutCreation /t REG_DWORD /d 1[/font][/color]

  • Thanks 2
Posted

[color=#373737][font=&amp]reg.exe add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer /v DisableEdgeDesktopShortcutCreation /t REG_DWORD /d 1[/font][/color]

Thanks! That fixed it right away.

  • 6 months later...
Posted

Sorry to dig up an old post, I've recently deployed 1909 and having a nightmare getting rid of the default apps. I've created the Powershell script and added it to my task sequence for deploying my reference image (as I want to do this at the time of installing windows rather than making another new reference image) and it just doesn't seem to be working!

 

I've added the run powershell script within the state restore section of my task sequence, would that be correct?

 

Yes, no problem.

 

We only run the script at the end off the MDT task sequence when we build a machine -it does not run when a user logs in.

 

[i should point out that I am aware of other far more sophisticated scripts, and also ways to simplify our script but as a scripting apprentice, this way made much more sense to us... and it worked!]

 

#Revome Bloatware commands 1
Get-AppxPackage -Name Microsoft.BingNews | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.GetHelp | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Getstarted | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Messaging | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Microsoft3DViewer | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.MicrosoftOfficeHub | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.NetworkSpeedTest | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.News | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Office.Lens | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.OneConnect | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.People | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Print3D | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.RemoteDesktop | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.SkypeApp | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.WindowsAlarms | Remove-AppxPackage
Get-AppxPackage -Name microsoft.windowscommunicationsapps | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.WindowsFeedbackHub | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.WindowsMaps | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.WindowsSoundRecorder | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.Xbox.TCUI | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxApp | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxGameOverlay | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxIdentityProvider | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxSpeechToTextOverlay | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.ZuneMusic | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.ZuneVideo | Remove-AppxPackage
Get-AppxPackage -Name *EclipseManager* | Remove-AppxPackage
Get-AppxPackage -Name *ActiproSoftwareLLC* | Remove-AppxPackage
Get-AppxPackage -Name *AdobeSystemsIncorporated.AdobePhotoshopExpress* | Remove-AppxPackage
Get-AppxPackage -Name *Duolingo-LearnLanguagesforFree* | Remove-AppxPackage
Get-AppxPackage -Name *PandoraMediaInc* | Remove-AppxPackage
Get-AppxPackage -Name *CandyCrush* | Remove-AppxPackage
Get-AppxPackage -Name *Wunderlist* | Remove-AppxPackage
Get-AppxPackage -Name *Flipboard* | Remove-AppxPackage
Get-AppxPackage -Name *Twitter* | Remove-AppxPackage
Get-AppxPackage -Name *Facebook* | Remove-AppxPackage
Get-AppxPackage -Name *Spotify* | Remove-AppxPackage
Get-AppxPackage -Name *Minecraft* | Remove-AppxPackage
Get-AppxPackage -Name *Royal Revolt* | Remove-AppxPackage
Get-AppxPackage -Name *Dolby* | Remove-AppxPackage
Get-AppxPackage -Name *Windows.CBSPreview* | Remove-AppxPackage
Get-AppxPackage -Name *Phone* | Remove-AppxPackage
Get-AppxPackage -Name Microsoft.XboxGamingOverlay | Remove-AppxPackage

#Remove Bloatware commands 2 - Removes future installs
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.BingNews | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.GetHelp | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Getstarted | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Messaging | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Microsoft3DViewer | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.MicrosoftOfficeHub | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.MicrosoftSolitaireCollection | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.NetworkSpeedTest | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.News | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Office.Lens | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.OneConnect | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.People | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Print3D | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.RemoteDesktop | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.SkypeApp | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsAlarms | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like microsoft.windowscommunicationsapps | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsFeedbackHub | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsMaps | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.WindowsSoundRecorder | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.Xbox.TCUI | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxApp | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxGameOverlay | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxIdentityProvider | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxSpeechToTextOverlay | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.ZuneMusic | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.ZuneVideo | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *EclipseManager* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *ActiproSoftwareLLC* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *AdobeSystemsIncorporated.AdobePhotoshopExpress* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Duolingo-LearnLanguagesforFree* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *PandoraMediaInc* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *CandyCrush* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Wunderlist* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Flipboard* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Twitter* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Facebook* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Spotify* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Minecraft* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Royal Revolt* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Dolby* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Windows.CBSPreview* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Phone* | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like Microsoft.XboxGamingOverlay | Remove-AppxProvisionedPackage -Online

#Fixes Whiteboard and Sway
Add-AppxProvisionedPackage -Online -PackagePath "c:\PGS\GPO Folder\StoreApps\Microsoft.Office.Sway_18.1711.50601.0_neutral___8wekyb3d8bbwe.AppxBundle" –LicensePath "c:\PGS\GPO Folder\StoreApps\Microsoft.Office.Sway_8wekyb3d8bbwe_8f700a8e-3731-b777-a6dd-000fe1f8fcb2.xml"
Add-AppxProvisionedPackage -Online -PackagePath "c:\PGS\GPO Folder\StoreApps\Microsoft.Whiteboard_19.10422.3487.0_x64__8wekyb3d8bbwe.AppxBundle" –LicensePath "c:\PGS\GPO Folder\StoreApps\Microsoft.Whiteboard_8wekyb3d8bbwe_fe0ac9df-1dfe-da54-be0b-c2e9cbc73355.xml"

#Installs once for admin user
Get-AppxPackage -allusers Microsoft.MSPaint | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.WindowsCalculator | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.MicrosoftStickyNotes | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.Office.OneNote | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.Whiteboard | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.Office.Sway | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.Screensketch | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

#Unpin all apps from start menu
Pin-App Microsoft.BingNews -Unpin
Pin-App Microsoft.GetHelp -Unpin
Pin-App Microsoft.Getstarted -Unpin
Pin-App Microsoft.Messaging -Unpin
Pin-App Microsoft.Microsoft3DViewer -Unpin
Pin-App Microsoft.MicrosoftOfficeHub -Unpin
Pin-App Microsoft.MicrosoftSolitaireCollection -Unpin
Pin-App Microsoft.NetworkSpeedTest -Unpin
Pin-App Microsoft.News -Unpin
Pin-App Microsoft.Office.Lens -Unpin
Pin-App Microsoft.OneConnect -Unpin
Pin-App Microsoft.People -Unpin
Pin-App Microsoft.Print3D -Unpin
Pin-App Microsoft.RemoteDesktop -Unpin
Pin-App Microsoft.SkypeApp -Unpin
Pin-App Microsoft.WindowsAlarms -Unpin
Pin-App microsoft.windowscommunicationsapps -Unpin
Pin-App Microsoft.WindowsFeedbackHub -Unpin
Pin-App Microsoft.WindowsMaps -Unpin
Pin-App Microsoft.WindowsSoundRecorder -Unpin
Pin-App Microsoft.Xbox.TCUI -Unpin
Pin-App Microsoft.XboxApp -Unpin
Pin-App Microsoft.XboxGameOverlay -Unpin
Pin-App Microsoft.XboxIdentityProvider -Unpin
Pin-App Microsoft.XboxSpeechToTextOverlay -Unpin
Pin-App Microsoft.ZuneMusic -Unpin
Pin-App Microsoft.ZuneVideo -Unpin
Pin-App *EclipseManager* -Unpin
Pin-App *ActiproSoftwareLLC* -Unpin
Pin-App *AdobeSystemsIncorporated.AdobePhotoshopExpress* -Unpin
Pin-App *Duolingo-LearnLanguagesforFree* -Unpin
Pin-App *PandoraMediaInc* -Unpin
Pin-App *CandyCrush* -Unpin
Pin-App *Wunderlist* -Unpin
Pin-App *Flipboard* -Unpin
Pin-App *Twitter* -Unpin
Pin-App *Facebook* -Unpin
Pin-App *Spotify* -Unpin
Pin-App *Minecraft* -Unpin
Pin-App *Royal Revolt* -Unpin
Pin-App *Dolby* -Unpin
Pin-App *Windows.CBSPreview* -Unpin
Pin-App *Phone* -Unpin
Pin-App Microsoft.XboxGamingOverlay -Unpin 

 

Hope that this is of use to you.

 

We also have a separate script to stop Edge from taking over e.g. pdf files.

Posted

Never run Remove-AppxPackage. It causes more harm than good.

Only use Remove-AppxProvisionedPackage.

Use Local profiles.

Use only Education or Enterprise.

Get used to UWP Apps becoming the norm - even Notepad is a UWP app now.

  • Thanks 2
Posted
I found the best way to remove the apps was to remove them from the wim. There was some software recently released called wimwitch. Solved all my problems.
  • Thanks 1
Posted

I've just done a 1909 test with a blank WIM and the script mentioned before ran fine. It removed all the Appx packages for all users, with the exception of Mixed Reality Portal which I will fix later.

 

Yes, we run the script in a similar location, 'Remove Builtin Apps' in the image below:

Annotation 2019-12-17 134247.png

 

Sorry to dig up an old post, I've recently deployed 1909 and having a nightmare getting rid of the default apps. I've created the Powershell script and added it to my task sequence for deploying my reference image (as I want to do this at the time of installing windows rather than making another new reference image) and it just doesn't seem to be working!

 

I've added the run powershell script within the state restore section of my task sequence, would that be correct?

  • Thanks 1

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...