How to launch Microsoft Edge to a specific Workspace?

Paul Jefferies 15 Reputation points
2023-09-11T09:44:11.8766667+00:00

How can I launch Microsoft Edge directly to a specific shared Edge Workspace, ie what is the command line switch?

Preferably I would like to launch two workspaces at once; more preferably I would like to launch them on to the last desktop region that they were arranged on.

I use "{msedgelocation} --restore-last-session" currently but it does not restore Workspaces.

Thank you.

I had a go with "--window-workspace" (from this list of Edge command line switches) using the name of the Workspace and separately with an ID I found (from the share URL). I also tried launching the Workspace share URL in the normal way using Explorer, but that didn't work it just opens a blank browser.

FYI general information about Edge Workspaces.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,181 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,185 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Raina Zhao - MSFT 1,960 Reputation points Microsoft Vendor
    2023-09-12T06:19:35.75+00:00

    Hi @Paul Jefferies ,

    Currently, it is not supported to directly launch Edge Workspaces using command line. You need to open a workspace from Edge browser.

    This command start msedge --restore-last-session can launch all closed tabs last time.

    We recommend that you could submit a feature request to the Dev Team by sending feedback (Press Alt+Shift+I) in Microsoft Edge.

    Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    Best Regards,

    Raina Zhao

    1 person found this answer helpful.
    0 comments No comments

  2. ITAutom8 5 Reputation points
    2024-02-13T19:44:04.3466667+00:00

    I believe you can use: msedge.exe" --launch-workspace=$workspaceID The ID is located in the workspace cache file: $env:LOCALAPPDATA\Microsoft\Edge\User Data\Profile #\Workspaces\WorkspacesCache

    1 person found this answer helpful.