Open ms edge in password setting location

hi,

I am putting my question in this categorie because i think it is not possible what i am asking. We are doing a migration to another microsoft tenant in the coming weeks and i would like to export the favorites and the passwords so that i can import them later in the newly created ms edge profile.

I know i am unable to export the passwords and managed to script the export of the favorites but still have the following question but since i haven’t got it working without powershell i have little fate it will work using powershell.

During the script i would like to start ms edge in the following location
edge://wallet/passwords?source=passwordssettings so that the user is immedately on the right spot and only needs to select to export the passwords and provide his password+location for the export.

Maybe i just need to create a manual for this, my own testing resulted to nothing and a search on the internet did not provide something hopeful.

Thanks in advance

This isn’t so much a PowerShell issue as it is an MSEdge issue.
The first step is figuring out if you can launch msedge.exe with any command line arguments that will open settings. You can open URLs, but the same syntax doesn’t work for edge://

Once you figure that out, then you can write PowerShell to replicate the behavior.

EDIT: See this post on SuperUser, I don’t think this is going to be possible for you

Bit of a hack, but this seems to work. Obviously no good if the window loses focus :slight_smile:

I found the Start-Sleep was necessary as Edge needs to have finished launching before the URL can be ‘typed’:

$wShell = New-Object -COMObject WScript.Shell
Start-Process msedge
Start-Sleep -Seconds 1
$wShell.SendKeys("edge://wallet/passwords?source=passwordssettings{ENTER}")
2 Likes

you’re the man Matt!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.