I am looking to schedule (via Task Scheduler) a VBS script which changes my default web browser to Chrome silently (Windows 10, domain connected, with local admin privileges). At the moment, the control panel appears and then disappears. I'd like to make this task 'silent' so that no window pops up (end user should not notice the change occuring).
An extract of the VBS script at the moment (taken from How to automate setting Chrome as default browser Windows 10?)
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?pszAppName=google%20chrome"
WScript.Sleep 1200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys " "
WScript.Quit
Many thanks.