Unwanted Apps in Start, Need help with script

Page 2 of 2 FirstFirst 12

  1. Posts : 36
    Windows X
    Thread Starter
       #11

    Hey thanks I tired to open the above dir name, but it came up invalid

    so I thought I might be on to something I tried to search for a folder "TileDataLayer" everywhere under %appdata% with hidden system files enabled and still I don't see this directory anywhere maybe the structure was changed under 1803 idk.

    I also tired to remove the above AppUserModelID packages but they only appear after, If I was to left click tile icons via start which allows it to grab and download them from Microsoft store...after then they will show up.

    also disabling suggestions in settings and running a few reg entries such as...

    reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /t REG_DWORD /d "2" /f
    reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d "1" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OemPreInstalledAppsEnabled" /t REG_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Conte ntDeliveryManager_cw5n1h2txyewy" /v "Disabled" /t REG_DWORD /d "1" /f
    reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\Subscriptions" /f
    reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SuggestedApps" /f

    ...to prevent future updates of said applications via cloud but not too worried about that atm as I can't even remove them in the first place lol
      My Computer


  2. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #12

    My timetable is probably not useful for you. I keep trying to improve my response to version updates - I am fed up having to work my way through checking every entry in Settings & the Control panel. Improved removal of unwanted Apps is just one part of this effort

    1 I am studyingin order to understand what I need to do to remove all the unwanted Apps [including Start menu entries for the awkward squad, these underhand App shortcuts]. I intend to put together a Deprovisioning list so that the unwanted Apps are avoided in the future.

    2 I am also going to look into Start menu contents more generally so that I can better understand how to 'save' a Start menu for export or restoration. I know there is information about contents in
    Start menu - CurrentUser [%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu]
    Start menu- All users [C:\ProgramData\Microsoft\Windows\Start Menu]
    Start Menu Places - All users [C:\ProgramData\Microsoft\Windows\Start Menu Places]
    StartMenu - User pinned - CurrentUser [%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs]
    but they are not, I understand, the whole story. That %UserProfile%\AppData\Local\TileDataLayer\Database\vedatamodel.edb is/was the repository for Start menu layout & pinned items. I will try to find out how it is done in Ver 1803 but I don't expect it to be useful for avoiding App entries.

    3 I will download Ver 1803 then install it in mid/late July. I have a limited internet data allowance so downloads such as this always await my next visit to a public wifi network.

    I can then assess success - the lack of any need to work through removing unwanted Apps including these underhand App shortcuts.

    Denis
      My Computer


  3. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #13

    Have you already removed these underhand App shortcuts manually? If not, get NirSoft's RegistryChangesView and use it to identify what happens in the Registry when one is uninstalled manually. That information might help in understanding how to automate the removal.

    Denis
      My Computer


  4. Posts : 260
    Win 10 Pro X64
       #14

    Microsoft moved the whole thing elsewhere and check the link below which might help

    Troubleshooting Script for Windows 10 Start Menu Issues - Jose Espitia
      My Computer


  5. Posts : 36
    Windows X
    Thread Starter
       #15

    o/ thxguise

    shimshom said:
    Microsoft moved the whole thing elsewhere and check the link below which might help

    Troubleshooting Script for Windows 10 Start Menu Issues - Jose Espitia
    I played with the whole DefaultLayouts.xml thing last night for a few hours actually... importing exporting modifying etc, mainly this is for GPO this will have no help as i'm using a current login not sysprep. Tho I was able to simulate removing the tiles section...the actual shortcuts to the apps listed in the first post still remain in the All Programs list...Initially I thought I was on to something but after several hours came to a dead end with the store apps still present on start to no avail...


    Try3 said:
    Have you already removed these underhand App shortcuts manually? If not, get NirSoft's RegistryChangesView and use it to identify what happens in the Registry when one is uninstalled manually. That information might help in understanding how to automate the removal.

    Denis
    OH NirSoft I love his software I didn't even think to try this LOL we may be on to something here now! after comparing the Registry Snapshots I created before and after uninstalling the store apps via tiles I have stumbled across this branch hive typed in small font below also with the keys listed in a photo long below where the info is stored...

    [HKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\]

    Now If i'm able to completely uninstall these store links and unpin everything to have a clean looking "LTSB ish looking start" w/o tiles etc...I just might be able to export such data to be included during my process...

    This def helps towards my goal here and may-be a solution! ...Needs further testing will keep posted.
    Attached Thumbnails Attached Thumbnails Unwanted Apps in Start, Need help with script-start.png  
      My Computer


  6. Posts : 36
    Windows X
    Thread Starter
       #16

    MrWhispers said:
    o/ thxguise
    Mission Accomplished
    Attached Thumbnails Attached Thumbnails Unwanted Apps in Start, Need help with script-loader.too-z.png  
      My Computer


  7. Posts : 260
    Win 10 Pro X64
       #17

    Care to elaborate on how you achieved it so others can also do it
      My Computer


  8. Posts : 36
    Windows X
    Thread Starter
       #18

    shimshom said:
    Care to elaborate on how you achieved it so others can also do it
    I have already its in post #15
      My Computer


  9. Posts : 107
    Windows
       #19

    MrWhispers said:
    I have already its in post #15
    A detailed explanation would be useful.

    You're pretty vague in post #15 especially the part...

    If i'm able to completely uninstall these store links and unpin everything to have a clean looking "LTSB ish looking start" w/o tiles etc...I just might be able to export such data to be included during my process...
    We'd all really appreciate a detailed step-by-step guide as to how you achieved this goal.
      My Computer


  10. Posts : 36
    Windows X
    Thread Starter
       #20

    Code:
    $START_MENU_LAYOUT = @"
    <LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
        <LayoutOptions StartTileGroupCellWidth="6" />
        <DefaultLayoutOverride>
            <StartLayoutCollection>
                <defaultlayout:StartLayout GroupCellWidth="6" />
            </StartLayoutCollection>
        </DefaultLayoutOverride>
    </LayoutModificationTemplate>
    "@
    
    $layoutFile="C:\Windows\StartMenuLayout.xml"
    
    #Delete layout file if it already exists
    If(Test-Path $layoutFile)
    {
        Remove-Item $layoutFile
    }
    
    #Creates the blank layout file
    $START_MENU_LAYOUT | Out-File $layoutFile -Encoding ASCII
    
    $regAliases = @("HKLM", "HKCU")
    
    #Assign the start layout and force it to apply with "LockedStartLayout" at both the machine and user level
    foreach ($regAlias in $regAliases){
        $basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
        $keyPath = $basePath + "\Explorer" 
        IF(!(Test-Path -Path $keyPath)) { 
            New-Item -Path $basePath -Name "Explorer"
        }
        Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 1
        Set-ItemProperty -Path $keyPath -Name "StartLayoutFile" -Value $layoutFile
    }
    
    #Restart Explorer, open the start menu (necessary to load the new layout), and give it a few seconds to process
    Stop-Process -name explorer
    Start-Sleep -s 5
    $wshell = New-Object -ComObject wscript.shell; $wshell.SendKeys('^{ESCAPE}')
    Start-Sleep -s 5
    
    #Enable the ability to pin items again by disabling "LockedStartLayout"
    foreach ($regAlias in $regAliases){
        $basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
        $keyPath = $basePath + "\Explorer" 
        Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 0
    }
    
    #Restart Explorer and delete the layout file
    Stop-Process -name explorer
    
    # Uncomment the next line to make clean start menu default for all new users
    #Import-StartLayout -LayoutPath $layoutFile -MountPath $env:SystemDrive\
    
    Remove-Item $layoutFile
    Powershell script to remove all tiles. This works on Windows 10 Builds only.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:52.
Find Us




Windows 10 Forums