Skip to main content

Google Chrome - Set Homepage

Summary

This script takes a string parameter to define the URL to set the homepage and adds the registry policy for an enforced homepage in Google Chrome.

Time Saved by Automation: 5 Minutes

Sample Run

Sample Run

Dependencies

Variables

  • @PS1DataLog@ - Helps to verify if the script actually succeeded.
  • @PS1ErrorLog@ - Helps to track failures of the script.

User Parameters

NameExampleRequiredDescription
-Homepagewww.google.comTrueThe string value of the homepage to set in the browser.
-EnforceOnNewTabFalseInclude this switch to force the homepage on each new tab instead of the new tab page.
-EnforceHomepageStartupFalseInclude this switch to force the homepage to be the only open tab at startup of the browser.

Process

The script takes a string parameter to define the URL to set the homepage. The applicable registry policies are applied to set the homepage to the one defined by the parameter. Optionally, switches can be used to enforce the homepage on startup and to enforce the homepage on each new tab.

Output

  • Script log
  • Local file on computer