Windows 11 Start Menu folders

Cédric_Dordo 10 Reputation points
2023-08-16T14:07:53.1766667+00:00

Hello,

With the new version Windows 11 22H2, it is now possible to create, manually, folders in the start menu.

Capture d’écran 2023-08-17 092229

My question is very simple, under Windows 11, is it possible by a script to create folder in the start menu ? (or retrieve this configuration to duplicate it during a deployment via configuration manager).

On Windows 10, it was possible to import an xml file containing all the configuration (pinned apps and folders) of the start menu with the powershell command Import-StartLayout

Exemple xml file with group of apps :

<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
  <LayoutOptions 
StartTileGroupCellWidth="6"
StartTileGroupsColumnCount="2"
FullScreenStart="false"
/>
  <DefaultLayoutOverride>
    <StartLayoutCollection>
      <defaultlayout:StartLayout GroupCellWidth="6">
        <start:Group Name="Group apps name">
          <start:DesktopApplicationTile Size="2x2" Column="4" Row="2" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\OneNote 2016.lnk" />
          <start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Word 2016.lnk" />
          <start:DesktopApplicationTile Size="2x2" Column="4" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\PowerPoint 2016.lnk" />
                    
        </start:Group>
      </defaultlayout:StartLayout>
    </StartLayoutCollection>
  </DefaultLayoutOverride>
</LayoutModificationTemplate>

On Windows 11, the json file can only add applications like this :

{ 
  "pinnedList": [ 
    { "desktopAppId": "MSEdge" }, 
    { "desktopAppId": "Microsoft.Office.WINWORD.EXE.15" }, 
    { "packagedAppId": "Microsoft.WindowsStore_8wekyb3d8bbwe!App" }, 
    { "packagedAppId": "Microsoft.WindowsNotepad_8wekyb3d8bbwe!App" } 
  ] 
} 

How can i add group for apps, in the script ?

Thanks for your reply

Microsoft Security | Intune | Configuration Manager | Other
Windows for business | Windows Client for IT Pros | User experience | Other
{count} vote

2 answers

Sort by: Most helpful
  1. S.Sengupta 24,476 Reputation points MVP
    2023-08-17T01:27:04.83+00:00

    You can try the following PowerShell script as Admin.This script requires administrative privileges to create a folder in the Start Menu.

    Replace "MyNewFolder" with the desired name of your folder.

    # Specify the folder name and path
    $folderName = "MyNewFolder"
    $folderPath = [System.Environment]::GetFolderPath("CommonStartMenu") + "\$folderName"
    
    # Check if the folder already exists
    if (-not (Test-Path -Path $folderPath)) {
        # Create the folder
        New-Item -Path $folderPath -ItemType Directory
        Write-Host "Folder '$folderName' created in the Start Menu."
    } else {
        Write-Host "Folder '$folderName' already exists in the Start Menu."
    }
    
    

  2. pauljebastin 21 Reputation points
    2023-11-07T09:30:29.2766667+00:00

    Hello @Cédric_Dordo, Try this method,

    1. Modify your start menu layout as per your requirement.
    2. Export start2.bin from %LocalAppData%\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState
    3. Copy the start2.bin file to every users profiles / default profile

    If this answer is helpful, please mark this comment as answer. Thank you.

    References:

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.