private const string MAINREGKEY = @"Software/Microsoft/Internet Explorer/Main"; static void Main(string[] args) { SetHomePage(@"http://www.google.com.cn"); } /// <summary> /// Set home page to specified URL /// </summary> /// <param name="url">URL which is set to home page</param> public static void SetHomePage(string url) { //change this value: HKEY_CURRENT_USER/Software/Microsoft/Internet Explorer/Main Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(MAINREGKEY, true); if (key != null) { key.SetValue("Start Page", url); } }