Script to export IE bookmark / browsing data and import to other browsers

Ralf Leung 1 Reputation point
2020-11-03T08:51:37.02+00:00

Now we have 2 platforms:

  • Windows 7 with IE, Edge, Chrome
  • Windows 10 with IE, Edge, Chrome

Now I want to transfer the bookmark / browsing data in IE to other browser through script, how can I do this?
Or any simple way to achieve?

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,323 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Yu Zhou-MSFT 13,411 Reputation points Microsoft Vendor
    2020-11-04T03:31:24.45+00:00

    Hi @Ralf Leung ,

    There's a simple way to achieve this without script:

    For Edge, if you're using Edge Chromium, you can open Edge and navigate to edge://settings/importData. Then choose Microsoft Internet Explorer and choose what you want to import. Click Import to complete the operation.

    37240-image.png

    For Chrome, you can open Chrome and navigate to chrome://settings/importData. Then choose Microsoft Internet Explorer and choose what you want to import. Click Import to complete the operation.

    37334-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,
    Yu Zhou


  2. Yu Zhou-MSFT 13,411 Reputation points Microsoft Vendor
    2020-11-04T10:08:29.16+00:00

    Hi @Ralf Leung , if you'll run the Edge browser for the first time, you can easily set this policy AutoImportAtFirstRun to import IE browser settings to Edge at the first run. You can enable this policy and choose Automatically imports all supported datatypes and settings from Internet Explorer in the options.

    If you're not running the Edge browser for the first time, there's no easy way to import IE browser data to Edge using script as IE and Edge use different ways to manage data. For example, IE stores the favorites as shortcut links in the computer but Edge stores them as json data in a file.
    In this situation, you can refer to this article to export IE favorites using powershell script first and then set this policy ManagedFavorites to configure Edge favorites. You need to enable this policy and put the exported json data in the options value. If you also want to configure the Edge favorites using script, you can refer to this article about how to edit registry key with powershell because editing the policy also means editing the registry key.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,
    Yu Zhou


  3. Yu Zhou-MSFT 13,411 Reputation points Microsoft Vendor
    2020-12-02T08:54:46.587+00:00

    Hi @Ralf Leung

    Where should I set the "AutoImportAtFirstRun" registry?

    You can open the Registry Editor and add it under path Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge. Under this path, right click and New a DWORD value which name is AutoImportAtFirstRun. Then double click the value name and set the Value data to 1, click OK.
    44272-image.png

    When I installed the Chromium Edge, the browser will start-up when installation complete. How can I import the IE favorite to Edge?

    From the doc, it says If you enable this policy, all supported datatypes and settings from the specified browser will be silently and automatically imported at first run. So I think we don't need to do anything, IE favorites will be imported to Edge automatically if you have applied the policy before you install and run Edge Chromium for the first time.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,
    Yu Zhou

    0 comments No comments

  4. Ralf Leung 1 Reputation point
    2020-12-03T02:06:28.5+00:00

    hi @Yu Zhou-MSFT , I tried your method for few PCs and seems work, thank you for your advise!!

    But I still need your some recommendation:
    "AutoImportAtFirstRun" should be just work for first run, and I am trying to migrate the bookmark from "IE to Edge" / "Chrome to Edge";
    After testing for the case "IE to Edge", and I want to test "Chrome to Edge" in the same PC but seems not work, whatever I re-add the registry or reinstall the Edge.

    According to the below test case, does "AutoImportAtFirstRun" only work 1 time for every device?


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.