get current value from registry

Hi,

I want to change the default browser on our server from Internet explorer to Chrome
I can do my test to see see what the current property is with
[pre]
$test = get-itemproperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice’ -name ProgID
$test.ProgID
[/pre]

as such I’m also able to change the value of the default browser to the one I want
[pre]
set-itemproperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice’ -name ProgID ChromeHTML
set-itemproperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice’ -name ProgID ChromeHTML
[/pre]
when doing this I see that under settings default app the web browser selection is empty
Do I specifically need to reboot or can I force the update on a different way?

Paul

Have you searched for this? I searched “registry set default browser powershell windows 10” and there are a ton of threads. It’s not just setting a key and MS makes it painful to change the browser because they want you to use their browser. Many of the solutions are using a exe and then sendkeys to go thru the interface which is last ditch effort.

Hi Rob,

yes I’ve seen these and unless I really have to I will go that road I would have liked to have just a simple way of changing this without having the users to go through that hassle.
on top of this it’s one of the features in my script that would be nice to be implemented but not a must

Paul