Change all browsers homepage to a spcific one

HoxoR

Member
Joined
Dec 11, 2018
Posts
5
hi, guys...
so need your help...

there are a batch file or so, that allows me to change the browsers internet page of severeal pc's?

i'm working on a non-domain network, so i think that GPO's dont apply in my case, right?

can anyone help me?

many tnks in adv
BR
HoxoR
 
i found this code... what your thoughts about it?

code:

@echo off
REG ADD "HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN" /V "START PAGE" /D "https://sdgdfhhjujyj.com" /F


@Echo off
taskkill /im firefox.exe* /f


ping 1.1.1.1 -n 1 -w 3000 > nul


cd /D "%APPDATA%\Mozilla\Firefox\Profiles"
cd *.default
set ffile=%cd%
echo user_pref("browser.startup.homepage", "https://yuyiyuiyuikukukku.com");>>"%ffile%\prefs.js"
set ffile=
cd %windir%


@echo off
javascript:(function(){ window.location.href='https://sgdrhthyjyjjygjgj.com';})();


start chrome "https://gdrhfjjyjfjyjjfyjyjfyjyf.com"
 
Personally, I think it would be less complicated to merely change the start pages for the browsers.
 
If all the PCs were on a domain network, then GPOs would be by far the easiest way to achieve this.

Even if you have a batch file, you will still need a way to actually run it on each machine. This can easily be done using GPOs and configuring a startup script. Without GPOs, you might be able to use PSExec to run the batch file on the remote PC: PsExec - Windows Sysinternals | Microsoft Docs

For IE, the homepage is set on a per-user basis in the registry as per here: Where is the IE11 homepage registry key location? – We know IE!. Note it's in the HKCU registry hive, so either needs to be run when the user is logged in, or a user's hive should be loaded into the registry and then the key set.

For Firefox, your best bet is the autoconfig file documented here: Customizing Firefox Using AutoConfig | Firefox for Enterprise Help. Alternatively the MSI installer can be modified directly: Firefox customization with MSI installers | Firefox for Enterprise Help. If using autoconfig, the line to set the homepage is:

Example config file:
Code:
// Any comment. You must start the file with a comment!

// Disable updater
lockPref("app.update.enabled", false);
// make absolutely sure it is really off
lockPref("app.update.auto", false);
lockPref("app.update.mode", 0);
lockPref("app.update.service.enabled", false);

// Disable Add-ons compatibility checking
clearPref("extensions.lastAppVersion"); 

// Don't show 'know your rights' on first run
pref("browser.rights.3.shown", true);

// Don't show WhatsNew on first run after every update
pref("browser.startup.homepage_override.mstone","ignore");

// Set default homepage - users can change
// Requires a complex preference
defaultPref("browser.startup.homepage","data:text/plain,browser.startup.homepage=http://home.example.com");

// Disable the internal PDF viewer
pref("pdfjs.disabled", true);

// Disable the flash to javascript converter
pref("shumway.disabled", true);

// Don't ask to install the Flash plugin
pref("plugins.notifyMissingFlash", false);

//Disable plugin checking
lockPref("plugins.hide_infobar_for_outdated_plugin", true);
clearPref("plugins.update.url");

// Disable health reporter
lockPref("datareporting.healthreport.service.enabled", false);

// Disable all data upload (Telemetry and FHR)
lockPref("datareporting.policy.dataSubmissionEnabled", false);

// Disable crash reporter
lockPref("toolkit.crashreporter.enabled", false);
Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).submitReports = false;

For Chrome, the master_preferences file can be used to set settings such as homepage automatically: Use master preferences for Chrome Browser - Google Chrome Enterprise Help
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top