How to automate setting Chrome as default browser in Windows 10
I've tried setting default in the reg keys:
hkeycu>software>microsoft>windows>shell>associations>urlassociations>http
and https
.
Tried using master_preference
file.
Tried using command switch --make-default-browser
.
So far these aren't working.
Any help would be appreciated. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.
command-line google-chrome windows-10 browser windows-registry
add a comment |
I've tried setting default in the reg keys:
hkeycu>software>microsoft>windows>shell>associations>urlassociations>http
and https
.
Tried using master_preference
file.
Tried using command switch --make-default-browser
.
So far these aren't working.
Any help would be appreciated. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.
command-line google-chrome windows-10 browser windows-registry
1
This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…
– Moab
Apr 25 '16 at 2:46
stackoverflow.com/questions/17536405/…
– Moab
Apr 25 '16 at 3:03
1
In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…
– Win32Guy
Apr 25 '16 at 5:02
Check out Judy Li's answer below; it worked for me!
– Sam
Apr 5 '17 at 23:48
add a comment |
I've tried setting default in the reg keys:
hkeycu>software>microsoft>windows>shell>associations>urlassociations>http
and https
.
Tried using master_preference
file.
Tried using command switch --make-default-browser
.
So far these aren't working.
Any help would be appreciated. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.
command-line google-chrome windows-10 browser windows-registry
I've tried setting default in the reg keys:
hkeycu>software>microsoft>windows>shell>associations>urlassociations>http
and https
.
Tried using master_preference
file.
Tried using command switch --make-default-browser
.
So far these aren't working.
Any help would be appreciated. Open to any to batch files, registry keys, file replacements/edits... basically anything I can automate.
command-line google-chrome windows-10 browser windows-registry
command-line google-chrome windows-10 browser windows-registry
edited Feb 20 '18 at 21:48
freginold
429414
429414
asked Apr 25 '16 at 1:17
JoshJosh
76225
76225
1
This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…
– Moab
Apr 25 '16 at 2:46
stackoverflow.com/questions/17536405/…
– Moab
Apr 25 '16 at 3:03
1
In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…
– Win32Guy
Apr 25 '16 at 5:02
Check out Judy Li's answer below; it worked for me!
– Sam
Apr 5 '17 at 23:48
add a comment |
1
This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…
– Moab
Apr 25 '16 at 2:46
stackoverflow.com/questions/17536405/…
– Moab
Apr 25 '16 at 3:03
1
In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…
– Win32Guy
Apr 25 '16 at 5:02
Check out Judy Li's answer below; it worked for me!
– Sam
Apr 5 '17 at 23:48
1
1
This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…
– Moab
Apr 25 '16 at 2:46
This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…
– Moab
Apr 25 '16 at 2:46
stackoverflow.com/questions/17536405/…
– Moab
Apr 25 '16 at 3:03
stackoverflow.com/questions/17536405/…
– Moab
Apr 25 '16 at 3:03
1
1
In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…
– Win32Guy
Apr 25 '16 at 5:02
In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…
– Win32Guy
Apr 25 '16 at 5:02
Check out Judy Li's answer below; it worked for me!
– Sam
Apr 5 '17 at 23:48
Check out Judy Li's answer below; it worked for me!
– Sam
Apr 5 '17 at 23:48
add a comment |
7 Answers
7
active
oldest
votes
Have you tried making a .vbs file to set Chrome as the default browser automatically?
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD
Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!
– Sam
Apr 5 '17 at 23:47
Also, if you want to run this on startup, just put the .vbs file in%APPDATA%MicrosoftWindowsStart MenuProgramsStartup
– Sam
Apr 6 '17 at 0:35
1
Also, you can simplify theSendKeys
bits into justWshShell.SendKeys "{TAB} {TAB}{TAB} "
.
– Sam
Apr 14 '17 at 3:29
2
I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).
– Ellipsis
Jan 26 '18 at 8:52
add a comment |
Here is the PowerShell version of the Judy Li / Raz solution:
function Set-ChromeAsDefaultBrowser {
Add-Type -AssemblyName 'System.Windows.Forms'
Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
Sleep 2
[System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
}
add a comment |
I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.
add a comment |
Take the script from Judy Li’s answer and tweak it.
Option Explicit
Dim oShell, sWinDir
Set oShell = WScript.CreateObject("WScript.Shell")
sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
Set oShell = Nothing
WScript.Quit
Save it on your desktop as a .vbs
file
(e.g., SetDefaultProgams.vbs
).
Double clicking it will bring up the more familiar Set Default Programs
with the list on the left, like previous versions of Windows 10.
(Of course there are other ways to invoke a program / script.
You could put it on your Start Menu, or run it through CMD or PowerShell.)
This script was tested by me on Windows version 10.0.16299.192.
add a comment |
I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
add a comment |
To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.
Launched SetDefaultBrowser.exe HKLM "Google Chrome"
and it worked fine for me.
add a comment |
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug
What are the steps to set Chrome as a default browser instantly?
– alljamin
Feb 16 '17 at 23:22
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.
– alancussen
Feb 18 '17 at 0:39
Add this to your answer.
– alljamin
Feb 18 '17 at 2:42
4
I think he/she was wanting to do this programmatically rather than manually.
– Sam
Apr 5 '17 at 23:43
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1069346%2fhow-to-automate-setting-chrome-as-default-browser-in-windows-10%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
Have you tried making a .vbs file to set Chrome as the default browser automatically?
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD
Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!
– Sam
Apr 5 '17 at 23:47
Also, if you want to run this on startup, just put the .vbs file in%APPDATA%MicrosoftWindowsStart MenuProgramsStartup
– Sam
Apr 6 '17 at 0:35
1
Also, you can simplify theSendKeys
bits into justWshShell.SendKeys "{TAB} {TAB}{TAB} "
.
– Sam
Apr 14 '17 at 3:29
2
I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).
– Ellipsis
Jan 26 '18 at 8:52
add a comment |
Have you tried making a .vbs file to set Chrome as the default browser automatically?
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD
Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!
– Sam
Apr 5 '17 at 23:47
Also, if you want to run this on startup, just put the .vbs file in%APPDATA%MicrosoftWindowsStart MenuProgramsStartup
– Sam
Apr 6 '17 at 0:35
1
Also, you can simplify theSendKeys
bits into justWshShell.SendKeys "{TAB} {TAB}{TAB} "
.
– Sam
Apr 14 '17 at 3:29
2
I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).
– Ellipsis
Jan 26 '18 at 8:52
add a comment |
Have you tried making a .vbs file to set Chrome as the default browser automatically?
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD
Have you tried making a .vbs file to set Chrome as the default browser automatically?
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
Reference: comment by user "Raz" in Making IE the default browser in Windows 10 during OSD
edited Apr 6 '17 at 4:37
Sam
9831931
9831931
answered Mar 2 '17 at 16:56
Judy LiJudy Li
7114
7114
Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!
– Sam
Apr 5 '17 at 23:47
Also, if you want to run this on startup, just put the .vbs file in%APPDATA%MicrosoftWindowsStart MenuProgramsStartup
– Sam
Apr 6 '17 at 0:35
1
Also, you can simplify theSendKeys
bits into justWshShell.SendKeys "{TAB} {TAB}{TAB} "
.
– Sam
Apr 14 '17 at 3:29
2
I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).
– Ellipsis
Jan 26 '18 at 8:52
add a comment |
Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!
– Sam
Apr 5 '17 at 23:47
Also, if you want to run this on startup, just put the .vbs file in%APPDATA%MicrosoftWindowsStart MenuProgramsStartup
– Sam
Apr 6 '17 at 0:35
1
Also, you can simplify theSendKeys
bits into justWshShell.SendKeys "{TAB} {TAB}{TAB} "
.
– Sam
Apr 14 '17 at 3:29
2
I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).
– Ellipsis
Jan 26 '18 at 8:52
Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!
– Sam
Apr 5 '17 at 23:47
Wow, that actually worked! Thanks a lot for this; I've been wanting a way to do this for ages!
– Sam
Apr 5 '17 at 23:47
Also, if you want to run this on startup, just put the .vbs file in
%APPDATA%MicrosoftWindowsStart MenuProgramsStartup
– Sam
Apr 6 '17 at 0:35
Also, if you want to run this on startup, just put the .vbs file in
%APPDATA%MicrosoftWindowsStart MenuProgramsStartup
– Sam
Apr 6 '17 at 0:35
1
1
Also, you can simplify the
SendKeys
bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} "
.– Sam
Apr 14 '17 at 3:29
Also, you can simplify the
SendKeys
bits into just WshShell.SendKeys "{TAB} {TAB}{TAB} "
.– Sam
Apr 14 '17 at 3:29
2
2
I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).
– Ellipsis
Jan 26 '18 at 8:52
I've noticed that this makes Chrome the default for all file types it can open. This overrides the default for opening PDFs to Chrome which isn't preferred in my particular situation. Would it be possible to avoid the PDF filetype being modified? (.html, .shtml, .htm, etc - pretty much everything except PDF). I suppose I'm looking to replicate the behaviour of changing 'Web Browser' in "Default Apps" (automatically, and ideally silently).
– Ellipsis
Jan 26 '18 at 8:52
add a comment |
Here is the PowerShell version of the Judy Li / Raz solution:
function Set-ChromeAsDefaultBrowser {
Add-Type -AssemblyName 'System.Windows.Forms'
Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
Sleep 2
[System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
}
add a comment |
Here is the PowerShell version of the Judy Li / Raz solution:
function Set-ChromeAsDefaultBrowser {
Add-Type -AssemblyName 'System.Windows.Forms'
Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
Sleep 2
[System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
}
add a comment |
Here is the PowerShell version of the Judy Li / Raz solution:
function Set-ChromeAsDefaultBrowser {
Add-Type -AssemblyName 'System.Windows.Forms'
Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
Sleep 2
[System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
}
Here is the PowerShell version of the Judy Li / Raz solution:
function Set-ChromeAsDefaultBrowser {
Add-Type -AssemblyName 'System.Windows.Forms'
Start-Process $env:windirsystem32control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome'
Sleep 2
[System.Windows.Forms.SendKeys]::SendWait("{TAB} {TAB}{TAB} ")
}
answered May 15 '18 at 21:30
BenHBenH
1412
1412
add a comment |
add a comment |
I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.
add a comment |
I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.
add a comment |
I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.
I wrote a little program that does this silently based on Judy Li's technique: Set Default Browser. See the page for more info.
edited Apr 26 '17 at 8:09
answered Apr 24 '17 at 23:06
SamSam
9831931
9831931
add a comment |
add a comment |
Take the script from Judy Li’s answer and tweak it.
Option Explicit
Dim oShell, sWinDir
Set oShell = WScript.CreateObject("WScript.Shell")
sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
Set oShell = Nothing
WScript.Quit
Save it on your desktop as a .vbs
file
(e.g., SetDefaultProgams.vbs
).
Double clicking it will bring up the more familiar Set Default Programs
with the list on the left, like previous versions of Windows 10.
(Of course there are other ways to invoke a program / script.
You could put it on your Start Menu, or run it through CMD or PowerShell.)
This script was tested by me on Windows version 10.0.16299.192.
add a comment |
Take the script from Judy Li’s answer and tweak it.
Option Explicit
Dim oShell, sWinDir
Set oShell = WScript.CreateObject("WScript.Shell")
sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
Set oShell = Nothing
WScript.Quit
Save it on your desktop as a .vbs
file
(e.g., SetDefaultProgams.vbs
).
Double clicking it will bring up the more familiar Set Default Programs
with the list on the left, like previous versions of Windows 10.
(Of course there are other ways to invoke a program / script.
You could put it on your Start Menu, or run it through CMD or PowerShell.)
This script was tested by me on Windows version 10.0.16299.192.
add a comment |
Take the script from Judy Li’s answer and tweak it.
Option Explicit
Dim oShell, sWinDir
Set oShell = WScript.CreateObject("WScript.Shell")
sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
Set oShell = Nothing
WScript.Quit
Save it on your desktop as a .vbs
file
(e.g., SetDefaultProgams.vbs
).
Double clicking it will bring up the more familiar Set Default Programs
with the list on the left, like previous versions of Windows 10.
(Of course there are other ways to invoke a program / script.
You could put it on your Start Menu, or run it through CMD or PowerShell.)
This script was tested by me on Windows version 10.0.16299.192.
Take the script from Judy Li’s answer and tweak it.
Option Explicit
Dim oShell, sWinDir
Set oShell = WScript.CreateObject("WScript.Shell")
sWinDir = oShell.ExpandEnvironmentStrings("%WINDIR%")
oShell.Run sWinDir & "system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram"
Set oShell = Nothing
WScript.Quit
Save it on your desktop as a .vbs
file
(e.g., SetDefaultProgams.vbs
).
Double clicking it will bring up the more familiar Set Default Programs
with the list on the left, like previous versions of Windows 10.
(Of course there are other ways to invoke a program / script.
You could put it on your Start Menu, or run it through CMD or PowerShell.)
This script was tested by me on Windows version 10.0.16299.192.
edited Jan 15 '18 at 16:34
G-Man
5,627112358
5,627112358
answered Jan 15 '18 at 2:26
user862314user862314
1
1
add a comment |
add a comment |
I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
add a comment |
I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
add a comment |
I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
I modified the script above so that it will only change the default browser and not any of the other settings (mail, pdf, etc.) So this mimics changing the default browser usuing the Default Apps in Windows 10.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%system32control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgrampageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
answered Jan 10 at 17:21
Brendan MurphyBrendan Murphy
1
1
add a comment |
add a comment |
To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.
Launched SetDefaultBrowser.exe HKLM "Google Chrome"
and it worked fine for me.
add a comment |
To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.
Launched SetDefaultBrowser.exe HKLM "Google Chrome"
and it worked fine for me.
add a comment |
To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.
Launched SetDefaultBrowser.exe HKLM "Google Chrome"
and it worked fine for me.
To change default browser in Windows 10 try the tool from Christoph Kolbicz - https://kolbi.cz/blog/2017/11/10/setdefaultbrowser-set-the-default-browser-per-user-on-windows-10-and-server-2016-build-1607/.
Launched SetDefaultBrowser.exe HKLM "Google Chrome"
and it worked fine for me.
answered Jan 24 at 9:24
AldisAldis
1011
1011
add a comment |
add a comment |
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug
What are the steps to set Chrome as a default browser instantly?
– alljamin
Feb 16 '17 at 23:22
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.
– alancussen
Feb 18 '17 at 0:39
Add this to your answer.
– alljamin
Feb 18 '17 at 2:42
4
I think he/she was wanting to do this programmatically rather than manually.
– Sam
Apr 5 '17 at 23:43
add a comment |
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug
What are the steps to set Chrome as a default browser instantly?
– alljamin
Feb 16 '17 at 23:22
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.
– alancussen
Feb 18 '17 at 0:39
Add this to your answer.
– alljamin
Feb 18 '17 at 2:42
4
I think he/she was wanting to do this programmatically rather than manually.
– Sam
Apr 5 '17 at 23:43
add a comment |
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug
edited Feb 19 '17 at 18:15
answered Feb 14 '17 at 21:32
alancussenalancussen
11
11
What are the steps to set Chrome as a default browser instantly?
– alljamin
Feb 16 '17 at 23:22
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.
– alancussen
Feb 18 '17 at 0:39
Add this to your answer.
– alljamin
Feb 18 '17 at 2:42
4
I think he/she was wanting to do this programmatically rather than manually.
– Sam
Apr 5 '17 at 23:43
add a comment |
What are the steps to set Chrome as a default browser instantly?
– alljamin
Feb 16 '17 at 23:22
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.
– alancussen
Feb 18 '17 at 0:39
Add this to your answer.
– alljamin
Feb 18 '17 at 2:42
4
I think he/she was wanting to do this programmatically rather than manually.
– Sam
Apr 5 '17 at 23:43
What are the steps to set Chrome as a default browser instantly?
– alljamin
Feb 16 '17 at 23:22
What are the steps to set Chrome as a default browser instantly?
– alljamin
Feb 16 '17 at 23:22
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.
– alancussen
Feb 18 '17 at 0:39
On Windows 10, open Settings -> System -> Default Apps, and scroll to "Web Browser". If you try to select Chrome from the dropdown here and it does not appear to select (as seems to be the bug), choose Internet Explorer from the dropdown (notice that it selects), then reattempt to select Chrome from the dropdown. This appears to solve the bug.
– alancussen
Feb 18 '17 at 0:39
Add this to your answer.
– alljamin
Feb 18 '17 at 2:42
Add this to your answer.
– alljamin
Feb 18 '17 at 2:42
4
4
I think he/she was wanting to do this programmatically rather than manually.
– Sam
Apr 5 '17 at 23:43
I think he/she was wanting to do this programmatically rather than manually.
– Sam
Apr 5 '17 at 23:43
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1069346%2fhow-to-automate-setting-chrome-as-default-browser-in-windows-10%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
This should work for any program you need to set, just change the file path....nuance.custhelp.com/app/answers/detail/a_id/15717/~/…
– Moab
Apr 25 '16 at 2:46
stackoverflow.com/questions/17536405/…
– Moab
Apr 25 '16 at 3:03
1
In Windows 8 and higher, file associations are to be applied using an XML file... since the hashing algorithm is in place. Pls see damonjohns.com/2013/08/16/… and blogs.technet.com/b/mrmlcgn/archive/2013/02/26/…
– Win32Guy
Apr 25 '16 at 5:02
Check out Judy Li's answer below; it worked for me!
– Sam
Apr 5 '17 at 23:48