Migrate Edge Favorites (Only not entire profile) using USMT

Johnston, Roman 20 Reputation points
2024-04-19T16:11:55.72+00:00

Is there a way to isolate just the Edge favorites (very small) and back them up using USMT/.xml?

I do not need the entire bloated User Data folder. I have the code to back that up. It takes forever. I have the rest of the settings figured out that I need and only takes 1 minute to perform that backup.

Here is the code to do the entire User Data portion that takes too long. Just need to pare it down to look just specifically for the bookmarks and bookmarks.bak

This was supplied by Thomas Ehler. I am newer to USMT so any advice on how to pare that code down to just focusing on the favorite backup files would be greatly appreciated.

<!-- Microsoft Edge -->

Line 7151:     <displayName _locID="migapp.EdgeSXS">Microsoft Edge</displayName>

Line 7157:           <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Edge\User Data\*\Cache\* [*]</pattern>

Line 7163:             <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Edge\User Data\* [*]</pattern>

Line 7168:             <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Edge\User Data\*\Cache\* [*]</pattern>

Line 7173:             <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Edge\User Data\* [*]</pattern>
Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
831 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 14,461 Reputation points
    2024-04-22T07:38:04.1333333+00:00

    Hi,

    Sure, I can help you with that. The favorites in Microsoft Edge are stored in a file named Bookmarks and its backup is stored in Bookmarks.bak. These files are located in the Default folder under User Data.

    You can modify your USMT script to only migrate the Bookmarks and Bookmarks.bak files. Here’s how you can do it:

    XML

    <displayName _locID="migapp.EdgeSXS">Microsoft Edge</displayName>
    	<pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Edge\User Data\Default\Bookmarks [*]</pattern>
    	<pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Edge\User Data\Default\Bookmarks.bak [*]</pattern>
    

    This script will only backup the Bookmarks and Bookmarks.bak files from the Default folder, which should significantly reduce the time it takes to backup compared to backing up the entire User Data folder.

    Please note that this will only backup the favorites from the default profile. If you have multiple profiles and want to backup the favorites from all of them, you would need to adjust the script accordingly.

    0 comments No comments