Category filter

PowerShell script to export Start menu layout

The Start menu layout on Windows devices typically consists of a customizable grid of frequently used and pinned applications within the Start menu. Exporting the Start menu layout is particularly helpful for IT admins when configuring the Windows multi-app kiosk policy. The script facilitates the export of Start menu layout from Windows devices, which is essential for maintaining a standardized Start menu layout of apps while configuring the kiosk lockdown policy across multiple devices. This process involves exporting the required layout from a reference device and then using it on other devices while configuring the multi-app kiosk policy. The document includes a script to export the Start menu layout on Windows devices, which IT admins can deploy using Hexnode’s Execute Custom Script remote action.

Scripting language – PowerShell

File extension – .ps1

Disclaimer:


The sample script provided below is adapted from a third-party open-source site.

Notes:

  • The script is compatible exclusively with Windows 10 devices.
  • Only the currently logged-in user’s Start menu layout is exported.

Export Start menu layout

The script fetches and saves the Start menu layout for the currently logged-in user account using the Export-StartLayout cmdlet. This cmdlet exports the layout of the Start menu as an XML file. The Export-StartLayout cmdlet is used with the -Path parameter specifying the location and filename where the XML file containing the Start menu layout will be saved. Replace C:\Path\to\the\file\Filename.xml with the actual path where you want to save the start layout XML file. Also, replace Filename.xml with the desired name for the XML file.

What happens at the device end?

Upon successful execution of the script, the Start menu layout of the currently logged-in user account will be saved to the specified location on the device. A success message will then be displayed in the Hexnode UEM portal under the Action History tab.

Use a script to export the Start menu layout on Windows and verify its output from Hexnode

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository