1

I had a new User Profile created for me, with the old User Profile still available and readable by me.

I am a bit hesitant about doing a "rough" Edge user data migration, of just copying the relevant folders under AppData (although perhaps I shouldn't be?) - but it is important to me to get the tabs which were open in the Edge windows last time I logged on to the old profile.

Is it possible to "restore" those tabs in my new profile's instance of Edge? If not, is it possible to at least extract their URLs into a text file?

Additional info:

  • I have the previous profile's credentials.
  • My profile is an Administrator.
  • Windows version: Windows 10 Enterprise 10.0.19045.4170
  • The reason for the new profile creation is some kind of OS refresh/update and/or change of Domain - due to corporate procedure, not some technical problem.
3
  • Why did you need a new user profile ?
    – harrymc
    Commented Mar 26 at 14:17
  • @harrymc: I didn't really... my company did some OS update/refresh, perhaps also with a "domain" change, and when I logged in using the same credentials it was a new profile.
    – einpoklum
    Commented Mar 26 at 15:10
  • Copy the Edge user profile directory to the new system, I routinely transfer Chromium based browsers profiles, between systems
    – Ramhound
    Commented Mar 26 at 15:40

1 Answer 1

1

Edge stores open tabs within one or more Tabs_<arbitrary #> file(s) located at:

# See #4 for Old User's %LocalAppData% path
  "%LocalAppData%\Microsoft\Edge\User Data\Default\Sessions\Tabs_<arbitrary #>"

To restore the old User Profile's Edge tabs for the current user, copy the Tabs_<arbitrary #> file(s) from the old User Profile to the new one:

  1. Open a Terminal: WinKey+ROpen: powershellOK
  2. Close Microsoft Edge, then ensure no instances remain open:
    TaskKill /im "msedge.exe" /f
    
  3. Rename current Edge profile's Tabs_<arbitrary #> file(s) to Tabs-<#>.old:
    Ren "$env:LocalAppData\Microsoft\Edge\User Data\Default\Sessions\Tabs" "$env:LocalAppData\Microsoft\Edge\User Data\Default\Sessions\Tabs-<#>.old"
    
    • With cursor at the end of ..\Tabs, double press Tab to auto-complete numerical portion of the file name, repeating until no more Tabs_<arbitrary #> file(s) exist

  4. Copy old User Profile's Edge profile's Tabs_<arbitrary #> file(s) to new user's:
    Xcopy "C:\Users\<OldUser>\AppData\Local\Microsoft\Edge\User Data\Default\Sessions\Tabs*" "$env:LocalAppData\Microsoft\Edge\User Data\Default\Sessions\"
    
  5. Open Edge


To restore the old User Profile's Edge profile for the current user, copy the Edge profile's User Data directory from the old User Profile, instead of only the Tabs_<arbitrary #> file(s):

  1. Close Microsoft Edge, then ensure no instances remain open:
    TaskKill /im "msedge.exe" /f
    
  2. Rename current Edge profile's User Data directory to User Data.old:
    Ren "$env:LocalAppData\Microsoft\Edge\User Data" "$env:LocalAppData\Microsoft\Edge\User Data.old"
    
  3. Copy old user's Edge profile's User Data directory to new user:
    RoboCopy "C:\Users\<OldUser>\AppData\Local\Microsoft\Edge\User Data" "$env:LocalAppData\Microsoft\Edge\User Data" /e /eta /v
    
  4. Open Edge
8
  • This will make the new profile identical to the old (if there was a problem with that old profile).
    – harrymc
    Commented Mar 26 at 14:19
  • @harrymc A new User Profile wouldn't have been created because of an issue with the Edge profile (or at least it shouldn't have been)
    – JW0914
    Commented Mar 26 at 14:24
  • “It's unclear whether Edge restores tabs from this file” - All chromium based browsers store sessions and tabs identically.
    – Ramhound
    Commented Mar 26 at 15:41
  • @Ramhound Right, but I couldn't find any info regarding whether once Edge is closed, does a Chromium-based browser restore previously open tabs from ..\User Data\Default\Sessions\Tabs_<arbitrary #>? It doesn't seem like they do, since if you force-close Edge with TaskKill, the previous open tabs aren't restored. Even searching the Chromium Developer help section only returned this as relevant
    – JW0914
    Commented Mar 26 at 16:51
  • @JW0914 - If you force close a Chromium process, it can't possibly go through the process of saving the sessions and/or tabs. However, you should still be able to open those tabs (or their last saved state), by using the keyboard shortcut to do so.
    – Ramhound
    Commented Mar 26 at 17:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .