Link to home
Start Free TrialLog in
Avatar of gaddam01
gaddam01

asked on

Login Script

Hi,

We are using Windows server 2003 Domain controllers. Our client machines are using XP with Internet Explorer 7.

I need a login script for all the users which will set the google.co.uk as a default search provider in Internet Explorer 7.

Please provide me the registry settings which are required for this as a Logon Script.
Avatar of fredvr666
fredvr666

The best way to do that is throught group policies.
check adm from this website (then implement group policy with this adm)

https://www.experts-exchange.com/questions/24391414/Group-Policy-Internet-Explorer-7-Default-Search-Provider.html


JAN MA CCNA
A registry hack would look like this [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
“Start Page”=”http://www.google.co.uk/” as seen here http://www.howtogeek.com/howto/windows/registry-hack-to-set-internet-explorer-start-page/

The standard approach would be to use Gorup Policy, though  Check out some instructions like this http://www.grouppolicy.biz/tag/home-page/
I would have to agree with theras2000, the best way to apply the homepage for all users is to make a group policy setting.

This is the link i would suggest. http://www.grouppolicy.biz/tag/home-page/
Do you have a Vista, Windows7 or a Windows 2000 server? if you do you can install the RSAT and use Group Policy Pref. You will need to install the Client side extensions on all your XP clients.

http://technet.microsoft.com/en-us/library/cc731892(WS.10).aspx

http://www.microsoft.com/download/en/details.aspx?id=3628
Avatar of gaddam01

ASKER

Sorry. We have only XP Clients. We are not interested in GPP.
Avatar of McKnife
Gaddam, you asked for registry settings and theras2000 provided those. Use reg.exe in a login script to set that value. The command REG ADD /? tells you how.
> Sorry. We have only XP Clients. We are not interested in GPP
Well, you should be. xp is capable of using the (many) advantages of GPPs. Simply distribute the patch kb943729 using your wsus and they are ready to use GPPs.
@McKnife, could not agree more with your comment.

By using GPP you have no need for most if not all your current login scripts. Makes the task of creating\editing user settings so much easier.
You do not want to use GPP.

Follow below steps:

Create the registry.
Export the registry.
Use the tool reg2adm convert the registry to the adm template
Create new gropu policy and import the template
Configure the policy and link to the OU

If still you did not want to do this then here is the vbscript for you
============================================================================

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Main\Start Page", "http://www.google.co.uk", "REG_SZ"



===========================================================================

Test the above script in the LAB
now put the script as Login script and this should work.



Hello,

Thanks for the reply. I don't want www.google.co.uk as a start page. I want www.google.co.uk as a default serarch provider.
Oops, misread that.
Take the following regfile. Please note: The faviconpath has to be modified - I placed google's icon at C:\Common\Favicons\search_{52DD67EC-CE77-45B2-A4D6-52C2D60F871B}.ico", this won't be the same path at your site. Maybe it can even be omitted and the icon will update itself on the next browser start - please try.
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes]
"DefaultScope"="{52DD67EC-CE77-45B2-A4D6-52C2D60F871B}"
"DownloadRetries"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{52DD67EC-CE77-45B2-A4D6-52C2D60F871B}]
"DisplayName"="Google"
"URL"="http://www.google.de/search?q={searchTerms}"
"ShowSearchSuggestions"=dword:00000001
"SuggestionsURL_JSON"="http://suggestqueries.google.com/complete/search?output=firefox&client=IE8&hl={Language}&qu={searchTerms}"
"OSDFileURL"="http://www.ieaddons.com/de/DownloadHandler.ashx?ResourceId=843"
"FaviconURL"="http://www.google.de/favicon.ico"
"FaviconPath"="C:\\Common\\Favicons\\search_{52DD67EC-CE77-45B2-A4D6-52C2D60F871B}.ico"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Search Page"="http://www.google.de"

Open in new window

Yeah sorry too. I think we all misread that and just assumed that you meant the homepage.
Hello,

How to user reg file. please provide me the steps.

Please provide me the solution for www.google.co.uk not for www.google.de
OK, baby steps :)
Copy the code and paste it into notepad. Now change .de to .co.uk. About the icon path - see above. Then save it as Googlesearchprovider.reg to some \\server\share your clients have read access to.
Now add the following line to your login script:
regedit /s \\server\share\Googlesearchprovider.reg
Done.
Is the Guid Is same  {52DD67EC-CE77-45B2-A4D6-52C2D60F871B} for both google.de and goole.co.uk??
No, it ain't. I am not sure if that matters, I must confess. I will try it out tonight.
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
============================================================================

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Main\Start Page", "www.google.co.uk ", "REG_SZ"



===========================================================================


Please replace ''www.google.co.uk'' WITH WHATEVER URL you want

save the files as "mod.vbs" file will have above 2 lines.

put the script as the Login script of the user in group policy and it will work CHECK and let me know