Jump to content

Recommended Posts

Posted (edited)

So the scenario is that we just moved to a new Intranet website on our domain. The intranet site is set as the default home page on our image. My objective is too change the home page via the registry in a log on script. So the very basic logic would be:

If http://old_intranet is the start page change to http://new_intranet

If http://old_intranet is not the start page, do nothing

The reason for not just changing everyone all at once is that I work at a law firm and I know we will get a lot of help desk calls from partners if we change their yahoo finance (or whatever) home page. I know how to change the site for everyone and know I can run a reg query command to see what it is currently set too, just having a problem putting it all together. Any assistance would be appreciated.

Domain - Windows 2k3

Clients - XP SP2

Thanks

Edited by tekniik

Posted

Which key are you checking/changing `"Start Page"=` on?

  • HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main
  • HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main
  • HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main

What is the 'exact string' instead of the following?

Although you can change the key to suit, the URL string could be more important to the formation of an appropriate script solution than you may think!

Posted

Something along these lines should get you there:

@Echo off&Setlocal

Set K_="HKCU\Software\Microsoft\Internet Explorer\Main"
Set V_="Start Page"
Set O_=luceweb
Set N_=http://lucenet

Reg query %K_% /v %V_%|Find "%O_%">Nul 2>&1&&(
Reg add %K_% /v %V_% /d "%N_%" /f>Nul)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...