Forum Discussion
Edge Restore_on_Startup & Startup_URLs issues using Preferences File
Hi all,
if i using PowerShell to setting Restore_on_Startup & Startup_URLs in Preferences File, after Start, Edge clears all my values for both Parameters.
I have not any GPOs für Edge Settings and I don't want to use GPO either.
I tested with Chrome and Chrome has not any Problem.
$Edge_Pref = "$env:LOCALAPPDATA\Microsoft\Edge\User Data\Default\Preferences"
$Settings = Get-Content $Edge_Pref -Encoding UTF8 | ConvertFrom-Json
$S_Value = '
{
"restore_on_startup": 4,
"startup_urls": [ "https://google.com" ]
}'
$Settings | Add-Member -name "session" -Value (convertfrom-json $S_Value) -MemberType NoteProperty -Force
$Settings | ConvertTo-Json -compress -Depth 99 | Out-File $Edge_Pref -Encoding UTF8
If i set Startup_URLs manually on edge://settings/startHomeNTP , i have this Values in Preferences File:
session: @{restore_on_startup=4; restore_on_startup_edge_lightweight=67E0BEBA86B40142BE31CBCB871E051C68EB22CB3232C59389A3EC1F1C;
restore_on_startup_edge_lightweight_verify=d3a08b42343f2a92382325073f267744; startup_urls=System.Object[];
startup_urls_edge_lightweight=25DABC9F5D654437A12DF36989ED7ABFB5609218A0C67474F963CB3E079D582F365140B8D05A3E1C8C11704EACAFA1FB04CA34;
startup_urls_edge_lightweight_verify=28ed710ee1ad19225db5d5b124cf916a}
What are restore_on_startup_edge_lightweight and startup_urls_edge_lightweight Parameters (Chrome has not)?
I tested with this Microsoft Edge for Business Versions:
Version 124.0.2478.67 (64-Bit)
Version 126.0.2552.0 canary (64-Bit)
Version 125.0.2535.6 dev (64-Bit)
Windows Versions:
Windows 10
Windows 11
Windows Server 2019
Thanks