No announcement yet.

Remotely change IE8 Homepage

  • Filter
  • Time
  • Show
Clear All
new posts

  • Remotely change IE8 Homepage

    Hi everyone, i was wondering if it possible to remotely change the IE8 homepage of a Windows 7 PC for all users who would login to it.

    What i got so far is

    Dim objShell, RegLocate
    ' Create Variable to store inputted PC name
    Dim PcNameInput

    PcNameInput = InputBox("What is the full PC name that you wish to change the IE Homepage of")

    On Error Resume Next

    'This is the registry path to home page of interne t explorer 8 running Windows 7
    RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\ Internet Explorer\Main\Start Page"
    ' Write to reg key
    objShell.RegWrite RegLocate,"websitename","REG_SZ"
    'Display this window when script is run
    WScript.Echo "Done, the homepage is now set to web sitename"
    Quit the script
    WScript.Quit '
    I'm not sure how i get to connect to the reg of the inputted PC name now.

    Any help would be appreciated.
    Last edited by GTTDi; 4th February 2013, 20:49.

  • #2
    Re: Remotely change IE8 Homepage

    If the Windows 7 computer is joined to an Active Directory domain you can set the home page via Group Policy.


    • #3
      Re: Remotely change IE8 Homepage

      I would like to do it with VBScript if possible


      • #4
        Re: Remotely change IE8 Homepage

        Ok, so i have done more research and am getting closer to what i want but i get an error on line 13 of the script:
        objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue
        Not sure what the problem is with it, so any help appreciated.


        Here is the latest version:

        Const HKEY_CURRENT_USER = &H80000001

        Dim objRegistry, ComputerName, strKeyPath, strValueName, strValue

        ComputerName = InputBox("What is the PC name that you wish to change the IE Homepage of")

        Set objRegistry = GetObject("winmgmts:\\" & ComputerName & "\root\default:StdRegProv")

        strKeyPath = "Software\Microsoft\Internet Explorer\Main"
        strValueName = "Start Page"
        strValue = "WebSiteAddress"

        objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue

        'Display this window when script is run
        WScript.Echo "Done, the homepage is now set to " & strValue

        'Quit the script


        • #5
          Re: Remotely change IE8 Homepage

          It was nice if you posted the source of your script:

          Why not using GPO or running the script as logon script?

          If you persist on using the current method, change to HKey Users instead of Hkey Current user.
          Technical Consultant

          MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
          "No matter how secure, there is always the human factor."

          "Enjoy life today, tomorrow may never come."
          "If you're going through hell, keep going. ~Winston Churchill"