June 21st, 2021

How to Change the Start Page for the Edge Browser

@DoctorDNS
PowerShell Evangelist

Q: How can I change the Edge startup page?

A: You can change the start page easily using PowerShell.

Edge and It’s Start Page

I am basing this article on the latest incarnation of the Edge browser, aka Edge Chromium. The settings in this article seem to work fine on the latest versions of Windows 10 and Server 2022. Other browsers can have different approaches to startup page. And as ever – E&OE! (Errors and Omissions Excepted)

When the Edge browser starts up, it displays a startup page based on Bing by default. For many, this is fine – they can browse the contents and then navigate where they want. But in some circumstances, you may wish to change this default. And fortunately, this is straightforward to achieve.

An easy way to set the startup page for yourself is to configure two registry value entries on the local machine. The first is the RestoreOnStartup value entry to the registry key HKCU:\Software\Policies\Microsoft\Edge. This value entry is a REG_DWORD. By setting this entry with a value of 4, you tell Edge to use the URL or URLs you specify when it starts up rather than the default home page.

The second value entry (or entries) is within the key HKCU:\Software\Policies\Microsoft\Edge\RestoreOnStartupURLs. This value entry (or entries) contains the URL (or URLS) you want Edge to open at startup. In most cases, you would setup a single URL under this key, but you can set more to have Edge bring up multiple pages at startup.

Each registry value entry must have a unique entry name and contain the value of a URL you want Edge to restore at startup. The value entry name doesn’t seem to matter, so a value of 1 is fine. If you want a second URL, then add a second value entry with a name of 2 (and the value of the second URL).

Creating and setting these keys and key values as shown below enables the current user’s settings. If you are sharing the host with multiple users and want all users to have the same start page, you can set these entries in HKCU:\Software\Policies instead.

Configuring Edge Chromium Home Page

You have choices as to what page of pages Edge opens when it starts. You could choose a corporate Intranet landing page or perhaps a SharePoint project site. You could also the startup page to a different search engine home page, such as Duck Duck Go. As noted above, you can configure multiple startup pages should that be useful.

With PowerShell, you use the New-Item cmdlet to create the registry keys. It also makes sense to test whether the keys exist before trying to create them (and generating an error). You set the value entries using the Set-ItemProperty cmdlet.

The following code snippet sets the default home page for the current user for Edge Chromium to DuckDuckGo.

# Ensure Edge key exists
$EdgeHome = 'HKCU:\Software\Policies\Microsoft\Edge'
If ( -Not (Test-Path $EdgeHome)) {
  New-Item -Path $EdgeHome | Out-Null
}
# Set RestoreOnStartup value entry
$IPHT = @{
  Path   = $EdgeHome 
  Name   = 'RestoreOnStartup' 
  Value  = 4 
  Type   = 'DWORD'
}
Set-ItemProperty @IPHT -verbose
# Create Startup URL's registry key
$EdgeSUURL = "$EdgeHome\RestoreOnStartupURLs"
If ( -Not (Test-Path $EdgeSUURL)) {
  New-Item -Path $EdgeSUURL | Out-Null
}
# Create a single URL startup page
$HOMEURL = 'https://duckduckgo.com'
Set-ItemProperty -Path $EdgeSUURL -Name '1' -Value $HomeURL

The next time you start Edge, you should see this:

Running Edge with new startup page

There are other ways

As ever with PowerShell, there are other ways you could change start page for Edge. You can use the browser itself as described in a Microsoft suuport article. As ever, you coulkd set the registry settings using WMI. And, last but not least, it’s straightforward to set the browser’s start page via group policy.

Summary

It is easy to change the start page for the Edge web browser you just have to set a fewe registry keys and job done.

Tip of the Hat

I based this article on one written for the earlier Scripting Guys blog How Can I Change the Internet Explorer Home Page?. I don’t know the author.

Author

@DoctorDNS
PowerShell Evangelist

I'm just this old guy living in the English countryside. I know a bit about PowerShell and Windows. Love the Grateful Dead. Been excited about PowerShell since the first time Jeffrey Snover spoke about it in public. I have loved it, and the community ever since. So pleased to be able to give back here.

8 comments

Discussion is closed. Login to edit/delete existing comments.

  • Sean Duncan

    Hi, i have been looking high and low for some sort of solution to setting Edge's homepage for all users.
    Although, i am very new to PowerShell, and i can't get it to work for me - i know it's my fault, but could someone reply saying how to incorporate it?

    I tried saving this script as a .ps1 and placing it on a Windows 10 PC as a PowerShell login script using the Local...

    Read more
  • Omar Minaya

    could you tell me what version of edge you’re using exactly? these registries do not exist on my pc.

    • @DoctorDNS Author · Edited

      Hi and thanks for the comment.

      Yes - the reg keys do not exist by default - and by default, you get the Bing home page. :-)

      The script is meant to create the necessary keys and populate the value entries. Is the script not working for you? Any error messages?

      I have retested it here and it seems to work. I am using "Version 92.0.902.55 (Official build) (64-bit)".
      .

      Read more
  • NaveenKumar N

    There is a typo in DuckDuckGo 🙂

  • Per

    Now, if only Edge would allow me to configure a mandatory corporate home page while still allowing users to add extra start pages beside that.
    Unfortunately it seems to be force all or force nothing.

    • @DoctorDNS Author

      You couild approximate that with a more clever script. You could use a Set-EdgeStart function to set it to corporate standard then an Add-EdgeStartto add additional startup pages. So you could roll your own solution.

  • Lina

    Thats really helpful, thanks for sharing.
    I used to manually change search engine by browsing to Settings > Privacy and services > Address Bar and search

    ——
    Lina – CEO – R Web Hosting