Remove Start Tiles for all users

   I'm trying to use Invoke-HKCURegistrySettingsForAllUsers to remove the start tiles for existing users on a machine.  The code I'm using is:

     [scriptblock]$HKCURegistrySettings = {
       Remove-RegistryKey -Key 'HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\*$start.tilegrid$windows.data.curatedtilecollection.tilecollection' -Recurse -SID $UserProfile.SID
     }
     Invoke-HKCURegistrySettingsForAllUsers -RegistrySettings $HKCURegistrySettings
     Get-Process Explorer | Stop-Process

It works for the currently logged in user but not for any others. I believe it is failing because there is a wildcard in the path.

What would be a better way of getting any key in the path ‘HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\ that contains $start.tilegrid$windows.data.curatedtilecollection.tilecollection’?

The actual key in that path is de{4ed38a68-bb27-402c-9ffd-d7eece54272c}$start.tilegrid$windows.data.curatedtilecollection.tilecollection but the beginning part changes from user to user.

Thanks,

Donna

Hi,

Why not using an active-setup?

Thanks,

I don’t know how to do that. Do you have instructions for that?

Thanks,

Donna

I just looked up active-setup and that won’t work for me. Unfortunately, about 800 machines were imaged with the wrong taskbar and start tiles. I have fixed the image for new deployments. I want to modify the task bar and start tiles for existing profiles on these 800 machines. My script does the following:

  • Removes Edge from each desktop

  • Disables any new profiles from putting the Edge icon on the desktop

  • Copies a new layoutmodification.xml to each user’s profile

  • Imports a new custom layout for new users.

The part I’m having problems with is consistently getting it to open the registry hive for each user and get rid of the old start tiles.

Thanks,

Donna