Viewed 4k times 3. 2. Active 1 year, 9 months ago. Create a Windows Installer Package. Import-StartLayout -LayoutLiteralPath -MountLiteralPath [-WhatIf] [-Confirm] [] Description.

Open Windows PowerShell and run the Export-StartLayout cmdlet. In my experience the generated file is not ready for importing as-is (thanks Microsoft!). Open Powershell, being sure to 'Run as administrator' and use Export-StartLayout to generate an XML file For example, to generate an XML file and place it on C:\ the command is: Export-StartLayout -Path C:\Layout.xml.

This parameter does not accept the wildcard character (*). Import-StartLayout *.xml is not a valid layout file. Look for a property labeled AppUserModelID or DesktopApplicationLinkPath. That is OK! Copy "LayoutModification.xml" to "driverletter or mount dir":\Users\Default\Appdata\Local\Microsoft\Windows\Shell\ Capture the syspreped system. Change the main header to: I've got a few small projects in mind and they all have the requirement to accept a block or range of IPs as input. I have placed the layoutmodification.xml file in the shell folder but it still does not want to add the correct icons to the start menu. If the path includes an escape character (\), enclose the string in … The LayoutModification.xml file (don`t use another name for the file!) So you are in the process of developing a Windows 10 image, nice! Specifies a literal path to a layout file. You have built a reference machine, and exported the StartMenu file. We know how to do that with PowerShell: Export-StartLayout – Path C:\Export\MyStartMenu.xml And in your task sequence you import the file again with PowerShell:… You want de customize your StartMenu, nice! Sample taskbar configuration XML file I used Advanced Installer Express Edition (which is free to download) to create the file. powershell, export-startlayout –path path:\ LayoutModification.xml; Sysprep system and shutdown. No, but have you ran the import-startlayout command?

Step 6: I created a custom Run Command Line task to copy the *.xml file to the Windows temp folder. Step 5: In the PS(PowerShell) command type in the following – export-startlayout -path c:\layout\layoutmodification.xml – Note: the folder path will be different on your part and you can call the *.xml file whatever name you want. Learn more . export layout file. I try to make a powershell script that import a custom Windows10Pro StartLayout approved by my organisation. A PowerShell script is available there too, which do the same thing! Open the generated XML file. … The Import-StartLayout cmdlet imports the specified layout of Start into a mounted Windows image. 3. Look for an entry corresponding to the app you pinned.

The second step is to create a package which we can deploy with Intune. Just remember the script looks for StartMenu.xml Within LayoutModification.xml change DesktopApplicationID="Microsoft.InternetExplorer.Default" to DesktopApplicationLinkPath="%ALLUSERSPROFILE% \Microsoft\Windows\Start … The tricky part is either offering the user the option of providing a prefix (ie, -TargetNetwork 10.1.1.0/24), and then internally working out the IPs in that range, or what tends to happen is having the user generate the list and providing it to the function. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Ask Question Asked 2 years, 4 months ago. Include the file .xml file name extension. When you import a layout, it replaces the existing layout of Start for the default user profile.