Login Script

gaddam01
gaddam01 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The best way to do that is throught group policies.
JAN PAKULAICT Infranstructure Manager

Commented:
check adm from this website (then implement group policy with this adm)

http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Internet_Explorer/Q_24391414.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/

Commented:
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/

Commented:
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

Author

Commented:
Sorry. We have only XP Clients. We are not interested in GPP.
Distinguished Expert 2018

Commented:
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.

Commented:
@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.



Author

Commented:
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.
Distinguished Expert 2018

Commented:
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.

Author

Commented:
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
Distinguished Expert 2018

Commented:
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.

Author

Commented:
Is the Guid Is same  {52DD67EC-CE77-45B2-A4D6-52C2D60F871B} for both google.de and goole.co.uk??
Distinguished Expert 2018

Commented:
No, it ain't. I am not sure if that matters, I must confess. I will try it out tonight.
Distinguished Expert 2018
Commented:
Just installed Google UK as default provider. {5A559528-F598-4808-9A9F-00E86E6DD2E5} is its string.
So again the code
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes]
"DefaultScope"="{5A559528-F598-4808-9A9F-00E86E6DD2E5}"
"DownloadRetries"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{5A559528-F598-4808-9A9F-00E86E6DD2E5}]
"DisplayName"="Google UK"
"URL"="http://www.google.co.uk/#sclient=psy&hl=en&site=&source=hp&q={searchTerms}&aq=f&aqi=g5&aql=f&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=19c9b1f611b2c64b&biw=1344&bih=746"
"Codepage"=dword:0000fde9
"OSDFileURL"="http://www.microsoft.com/windows/ie/searchguide/spbuilder.mspx?Encoding=UTF-8&Name=Google%20UK&URI=http%3A%2F%2Fwww.google.co.uk%2F%23sclient%3Dpsy%26hl%3Den%26site%3D%26source%3Dhp%26q%3DTEST%26aq%3Df%26aqi%3Dg5%26aql%3Df%26oq%3D%26pbx%3D1%26bav%3Don.2%2Cor.r_gc.r_pw.%26fp%3D19c9b1f611b2c64b%26biw%3D1344%26bih%3D746"
"FaviconURL"="http://www.google.co.uk/favicon.ico"
"FaviconPath"="C:\\Users\\MyName\\AppData\\LocalLow\\Microsoft\\Internet Explorer\\Services\\search_{5A559528-F598-4808-9A9F-00E86E6DD2E5}.ico"

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

Please note that you might have to copy the favicon to that path (or a path you specify) - I am not sure if it populates automatically if no icon is found.
============================================================================

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial