Windows 10: How to automatically (cmd/powershell script) unpin all apps in start

Page 2 of 2 FirstFirst 12
  1.    14 Nov 2016 #11

    You guys helped me out tremendously.


    Is there a way to add other apps like Outlook, Word basically the entire office suite?
    I tried using the
    Pin-App "outlook" -pin

    But it does not add it
      My ComputerSystem Spec

  2.    15 Nov 2016 #12

    Sje1492 said: View Post
    Is there a way to add other apps like Outlook, Word basically the entire office suite?
    You can download the PinItemToStartMenu.pm1 module from here Script to pin items to Start menu in Windows 8 (PowerShell)

    Import it and then add what you want with Set-OSCPin as described in the help. If you install this module above you could add them like this (but you'd have to change the path if you don't use Office 2016)
    Code:
    Set-OSCPin -Path= `
    "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE", `
    "C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE", `
    "C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE"
    I tested it (as below) and it works for Outlook 2016 on Windows 10 AE - this is just code stripped from the link above to just add Outlook...
    Code:
    $itemPath ="C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE"
    
    $Shell = New-Object -ComObject Shell.Application
    $Desktop = $Shell.NameSpace(0X0)
    $WshShell = New-Object -comObject WScript.Shell
    
    $itemName = Split-Path -Path $itemPath -Leaf
    $ItemLnk = $Desktop.ParseName($itemPath)
    $ItemVerbs = $ItemLnk.Verbs()
    
    Foreach($ItemVerb in $ItemVerbs) {
        If($ItemVerb.Name.Replace("&","") -match "Pin to Start") {
           $ItemVerb.DoIt()
        }
    }
      My ComputerSystem Spec

  3.    20 Dec 2016 #13

    After running the script I have like 10 tiles left.

    1 -People
    4 -a great app is on its way
    5 - download arrow(s)

    Click image for larger version. 

Name:	20161220_114315.jpg 
Views:	4 
Size:	1.38 MB 
ID:	114312

    What script could I add to remove them?
      My ComputerSystem Spec

  4.    21 Dec 2016 #14

    i followed this & got everything off but whats shown in the picture below. could you help with a script that would remove the listed tiles & set a default wallpaper?

    Click image for larger version. 

Name:	20161220_114315.jpg 
Views:	4 
Size:	1.38 MB 
ID:	114404
      My ComputerSystem Spec

  5.    29 Dec 2016 #15

    irrefutable14 said: View Post
    i followed this & got everything off but whats shown in the picture below.
    I found very similar results when using the powershell suggested by this thread. Firstly, if this is an image I'd highly recommend using a clean version of Win10. It looks like you are using the OEM version that came on a machine, this could be part of your problem. With the 1607 update, Microsoft now provides an easy way to install a clean copy of Windows:

    How to use 'Refresh Windows' to do a clean install of Windows 10 Anniversary Update | Windows Central

    Secondly, try altering the DefaultLayouts.xml as I suggested earlier in the thread.

    GeneralG said: View Post
    Win10: Start Menu Cleanup using DefaultLayouts.xml | David Segura

    I was having difficulties using the Start Layout group policy and the powershell import-startlayout, so instead I modified the DefaultLayouts.xml directly. This file is located in directory "C:\Users\Default\AppData\Local\Microsoft\Windows\Shell".
    Now when I create a new local user, gone are all those aggravating tiles that reference nonexistent preinstalled apps. I'm still working on perfecting it, as my current version does leave behind Edge, Store, and Settings tiles.
    I still have yet to figure out how to get ride of those three tiles, but I've learned to live with it and just remove them by hand.

    The only problem with this solution is that it only applies when new users are created. You may have to go into your image (either online or offline) and directly alter the DefaultLayouts.xml file, rather than running an "after-the-fact" script. My saying: if it can be done in the image, do it in the image. Otherwise, use a script.
      My ComputerSystem Spec

  6.    02 Jan 2017 #16

    I have over400 tablets to update to windows 10. They are acer w4-820. I'm not using a clean install I'm simply updating. So manually removing over 10+ tiles and setting a default wallpaper & re-pinning tiles is very time consuming. I've used the script from the prior post to remove the basics but skype & a couple of games along with the arrows are remaining. This is whats left of the default layout after.

    The problem with sending a image is that the don't belong to a domain "windows 8 environment with no GP"

    <LayoutModificationTemplate Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
    <LayoutOptions StartTileGroupCellWidth="8" />
    <DefaultLayoutOverride>
    <StartLayoutCollection>
    <defaultlayout:StartLayout GroupCellWidth="8" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout">
    <start:Group Name="Life at a glance" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout1.2" DisplayName=" " Size="2x2" Column="4" Row="0" Arguments="creative-ms:default?p=DefaultStartLayout1&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo1.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout1.3" DisplayName=" " Size="2x2" Column="6" Row="0" Arguments="creative-ms:default?p=DefaultStartLayout1&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo1.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout2.1" DisplayName=" " Size="2x2" Column="6" Row="2" Arguments="creative-ms:default?p=DefaultStartLayout2&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo2.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    </start:Group>
    <start:Group Name="Play and explore" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout1.4" DisplayName=" " Size="2x2" Column="0" Row="0" Arguments="creative-ms:default?p=DefaultStartLayout1&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo1.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout2.2" DisplayName=" " Size="2x2" Column="4" Row="0" Arguments="creative-ms:default?p=DefaultStartLayout2&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo2.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout2.3" DisplayName=" " Size="2x2" Column="6" Row="0" Arguments="creative-ms:default?p=DefaultStartLayout2&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo2.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout1.5" DisplayName=" " Size="2x2" Column="0" Row="2" Arguments="creative-ms:default?p=DefaultStartLayout1&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo1.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout2.4" DisplayName=" " Size="2x2" Column="4" Row="2" Arguments="creative-ms:default?p=DefaultStartLayout1&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo1.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout2.5" DisplayName=" " Size="2x2" Column="6" Row="2" Arguments="creative-ms:default?p=DefaultStartLayout2&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo2.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    <start:SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout2.6" DisplayName=" " Size="2x2" Column="0" Row="4" Arguments="creative-ms:default?p=DefaultStartLayout1&amp;launch=ms-get-started://redirect%3Fid=placeholdertiles" Square150x150LogoUri="ms-appx:///Experiences/PreInstalledApps/DefaultSquareTileLogo1.png" Wide310x150LogoUri="ms-appx:///" ShowNameOnSquare150x150Logo="true" ShowNameOnWide310x150Logo="false" BackgroundColor="#00000000" />
    </start:Group>
    </defaultlayout:StartLayout>
    </StartLayoutCollection>
    </DefaultLayoutOverride>
    </LayoutModificationTemplate>
    ?Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager]
    ;0 = No Disable
    ;1 = Yes Enable (Default)
    "PreInstalledAppsEnabled"=dword:00000000
      My ComputerSystem Spec

  7.    03 Jan 2017 #17

    irrefutable14 said: View Post
    The problem with sending a image is that the don't belong to a domain "windows 8 environment with no GP"
    Whether or not you are in a domain environment shouldn't effect your ability to use a custom image. Not to get into an argument about the benefits of imaging, but updating 400 tablets by hand sounds much more time consuming than building an image that works exactly how you want even if you have to push it to each tablet individually.

    Regardless, if you are dead set on simply updating the tablet, rather than re-imaging, there's only one other thing I can think of:

    Maybe you could do a batch that replaces the "DefaultLayouts.xml" and then creates a new user. Here's the clean "DefaultLayouts.xml" what I used in my image:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <FullDefaultLayoutTemplate 
        xmlns="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
        xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
        Version="1">
        <StartLayoutCollection>
            
    
          <!-- 8 cell wide Desktop layout with Preinstalled apps -->
          <StartLayout
              GroupCellWidth="8"
              PreInstalledAppsEnabled="false">
              <start:Group
                  LocalizedNameResourceTag="TileGrid_DefaultGroup1">
                  
                             
                  
              </start:Group>
              <start:Group
                  LocalizedNameResourceTag="TileGrid_DefaultGroup2">
               
                  
                  
              </start:Group>
          </StartLayout>
    
        </StartLayoutCollection>
    Of course, this doesn't apply to any existing users, so after replacing the file, you'll have to create a new user. The batch would be super simple, I'm thinking would look something like this:

    Code:
    copy <pathTOcleanXML>\DefaultLayouts.xml C:\Users\Default\AppData\Local\Microsoft\Windows\Shell
    net user <newusername> <password>
    You may need to include some switch on the "copy" command to force overwrite, or you may need to use "xcopy" instead. Also, you could do a "net user <name> /delete" to remove the old user profile if you so desire.

    This all assumes that you are not attached to the current user profile on the tablets. As far as I know, there is no easy way to remove ALL the tiles for existing user profiles. In summary, the powershell script suggested by this thread doesn't get all of the tiles due to Microsoft's strange fascination with forcing "apps" down people throats. Meanwhile, the DefaultLayouts and LayoutModifcation methods only apply to new users or users included in an image, i.e. the default admin (and to be sure, these still leave 2-3 tiles in existence).

    Anyways, good luck with those tablets, they're always the absolute worst to manage.
      My ComputerSystem Spec


 
Page 2 of 2 FirstFirst 12

Related Threads
How to 'Pin to Start' and 'Unpin from Start" items in Windows 10 You can pin to Start any apps, contacts (People app), folders, drives, homegroup, library, network, and OneDrive so you can open them quickly, and see updates on live tiles for...
Many of the Universal Apps cannot be uninstalled because the button is inactive (grayed out). This might be 'by design' for the Technical Preview since Microsoft wants users to test the Apps. The preferred method is to use the uninstall button...
Can't unpin app from Start in Software and Apps
Hello, I can't unpin an app from the Start menu Here's a gif of what (doesn't) happen 30593
Can someone tell what the powershell errors means? when i put this commend ((Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications") | Get-ItemProperty).Path | Add-AppxPackage -Register...
Hi - playing around with Win10 I managed to pin a web shortcut to my All Apps menu, however it doesn't seem possible to remove it from there. A right click on it just gives options to pin to Start or Taskbar and a left click opens the web page. ...
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 22:29.
Find Us