0% found this document useful (0 votes)
77 views

How To Change The Start Page For The Edge Browser - PowerShell Community

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

How To Change The Start Page For The Edge Browser - PowerShell Community

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

PowerShell Community


Login

How to Change the Start Page for the Edge Browser

Thomas
June 21st, 2021

  

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.

Th f ll i d i h d f l h f h f Ed
The following code snippet sets the default home page for the current user for Edge
Chromium to DudkDuckGo.

# 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:

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.

Thomas Lee
PowerShell Evangelist

Follow    

Posted in PowerShell

Tagged Edge PowerShell

Read next

How to rename a NIC How to send output to a file


Q: Is there a simple way to rename a NIC, especially Q: Is there an easy way to save my script output to a text
inside a Hyper-V VM? A: You can change the name of any file rather than displaying it on screen? A: Of course -
Windows NIC using PowerShell - whether the NIC is in a there are multiple ways to do just that! PowerShell ...
...
@DoctorDNS May 24, 2021
@DoctorDNS June 13, 2021
2 comments
2 comments

0 comments

Log in to join the discussion.

Topics
.NET Active Directory ActiveDirectory AD Announcement Array Blog news Caps Lock Clipboard DevOps Edge Existing Cmdlet File

FileSystemWatcher Fun trick Function Git local users logon scripts Module network networking New Purpose NIC output

PowerShell Scripting Guys Update security string Test-Path ToUpper() VBScript WMI WMI Eventing XML

Top Bloggers

@DoctorDNS
PowerShell Evangelist

Sean Kearney
Customer Engineer - Microsoft

Wolfgang Groß
Software-Developer

Doctor Scripto
Scripter

Fabian Baumanis

Links

About this blog


How to contribute to the blog
PowerShell Team blog
Scripting blog (retired)
Stay informed

What's new Microsoft Store Education Enterprise Developer Company


Surface Laptop 4 Account profile Microsoft in education Azure Microsoft Visual Studio Careers

Surface Laptop Go Download Center Office for students AppSource Windows Dev Center About Microsoft

Surface Go 2 Microsoft Store support Office 365 for schools Automotive Developer Center Company news

Surface Pro X Returns Deals for students & Government Microsoft developer Privacy at Microsoft
parents program
Surface Duo Order tracking Healthcare Investors
Microsoft Azure in Channel 9
Microsoft 365 Virtual workshops and education Manufacturing Diversity and inclusion
training Microsoft 365 Dev Center
Windows 10 apps Financial services Accessibility
Microsoft Store Promise Microsoft 365 Developer
HoloLens 2 Retail Program Security
Financing
Microsoft Garage

 English (United States) Sitemap Contact Microsoft Privacy Terms of use Trademarks Safety & eco About our ads © Microsoft 2021

You might also like