Create new custom Edge profiles with PowerShell

Daniel Petri
3 min readJun 28, 2024

--

Working with multiple Edge profiles? Are you an consultant? Tired of selecting the wrong Edge icon in the taskbar? Sick of manually setting up Edge profiles on your new and shiny device?

If your answer to any of the questions above is HELL YEAH! you’ve come to the right place.

This script will help you to easily create new custom Edge profiles with PowerShell. This script is heavily inspired by Albert-Jan Schot blog Improved PowerShell to create Edge Profiles · CloudAppie but with some additional features. I highly recommend checking out his blogposts.

Now let’s look at the script!

Script Parameters

.PARAMETER Name
This parameter is a string and is mandatory.
The name of the new Edge profile.

.PARAMETER Image
This parameter is a string and is optional.
The URL of the image to use as the icon for the new Edge profile.

.PARAMETER StartMenuShortcut
This parameter is a switch and is optional and requires administrator privileges.
Creates a Start Menu shortcut for the new Edge profile.

Script Examples

.EXAMPLE
Create-EdgeProfile -Name “Example”
This example creates a new Edge profile named “Example”.

.EXAMPLE
Create-EdgeProfile -Name “Example” -Image “https://example.com/image.png
This example creates a new Edge profile named “Example” with the specified image as the icon.

.EXAMPLE
Create-EdgeProfile -Name “Example” -Image “https://example.com/image.png” -StartMenuShortcut
This example creates a new Edge profile named “Example” with the specified image as the icon and creates a Start Menu shortcut for the profile.

.EXAMPLE
Create-EdgeProfile -Name “Example” -StartMenuShortcut
This example creates a new Edge profile named “Example” and creates a Start Menu shortcut for the profile.

Script Execution

As an example I will run the script like this:

.\Create-EdgeProfile.ps1 -Name "Google" -Image "https://image.similarpng.com/very-thumbnail/2020/12/Black-google-logo-design-on-transparent-background-PNG.png" -StartMenuShortcut
The script will create a new Edge profile.

The script will then do the following:

  1. Create a new Edge profile with the name “Google”.
  2. Wait 15 seconds for the Edge profile to complete.
  3. Update the preferences of this profile according to how I like them, this includes:
    - Disable the Sidebar
    - Disable data share between profiles
    - Disable account based profile switching
    - Edit start page settings
    If you want to add, remove or edit any of these, please have a look at Albert-Jan Schot blogs Quickly create a new profile for Edge with PowerShell · CloudAppie and Improved PowerShell to create Edge Profiles · CloudAppie which covers these steps in detail.
  4. Download the image and convert it to .ico and set it as the profile icon.
  5. Create a shortcut in the Start Menu for easy access.

The Result

A new Edge profile with all the settings you prefer!

Easy to find the right Edge profile with the help of the Start Menu shortcut:

Easy to select the correct Edge profile in the taskbar:

If the icons doesn’t show right away, just sign in/out or restart your device.
A tip would be to add bookmarks and extensions to this as well but since that’s highly personal I’ve excluded those here.

The script is available here on my GitHub: Create-EdgeProfile.ps1

Hope you enjoyed this blog and that it makes your life easier!

Until next time… 🤘🏻🔥

--

--