Hi there,
I was looking to set the default search provider for some of our sites. I can see in the registry where this can be managed, but there seems to be a sort of self-healing behaviour if you just change the value in the HKCU\Software\Microsoft\Internet Explorer\SearchScopres\DefaultScope value. Doing a regshot, this seems to be tied to the HKCU\Software\Microsoft\Internet Explorer\User Preferences values (I'm using Win7, so the one that changes when I manually change providers is 88D7D0879DAB32E14DE583A805A34F98AFF34F5977).
What I'd like to be able to do is programmatically set this for some of our sites as we deploy to users (without healing or pop ups about a program changing the default search provider). I just want it set once to what we expect it to be (google.com for US sites, google.ca for canadian sites), so doing so through GPO isn't an option. We can use GPP if possible, but I suspect to do it right, we'd need to do it programmatically, so that the "check" values in the registry are filled in properly.
I ran across this bit of code, the IOpenService::SetDefault, which I believe would do the trick. I'm wondering if this can be converted into PowerShell or vbscript. I guess next question would be what type of code is that example written in?