Powershell script to read / delete Edge browser's localStorage

Gurus, is there any way to read / delete Edge browser’s localStorage or SessionStorage value?

Welcome!

You will need to be more specific so we can assist. Are you referring to View and edit session storage - Microsoft Edge Developer documentation | Microsoft Learn and View and edit local storage - Microsoft Edge Developer documentation | Microsoft Learn? Are you trying to replicate those steps via PowerShell? What’s the business need for it?

  1. Assume we know nothing. Please provide exactly what you are attempting to accomplish.
  2. Share any resources that are relevant to what you want to do.
  3. Share what you’ve tried so far.

Thanks for your response.

Purpose is avoid launching our application in second/multiple tabs. Decided to go with Web browser’s localStorage option to indicate whether the application is already opened or not. But the problem is value in the localStorage will not be cleaned up when the browser shuts when system restarts or shut down.
So, planning to clean up the browser’s locaal storage value while clients computer boots up. Looking for a powershell sceipt to clean up browser’s local storage value.

??? Wouldn’t it be easier to check the list of running processes? And to not get invisible background processes of Edge you may filter for processes with the name *edge* AND a MainWindowTitle. :man_shrugging:t3:

Hmmm … why not launching your application in a new separate window?

https://peter.sh/experiments/chromium-command-line-switches/#new-window