Jump to content

Recommended Posts

Posted

HI Everyone

 

Please can you help. Loads of students have installed chrome from the internet and its broken the file association with internet explorer. This means the shortcuts we have on the desktop dont work.

 

The students have tried using googgle chrome plugins to hack the network so we are having to remove google chrome and we have found we can do this with putting the install file in a share and running the following command as a script .

 

"\\hp-dc\software$\chrome removal\31.0.1650.57\Installer\setup.exe" --uninstall --chrome --msi --system-level --verbose-logging --force-uninstall

 

This removes the chrome but does not restore the default browser with Internet Explorer.

 

I have tried reg mods but this does NOT WORK.

 

Windows Registry Editor Version 5.00

 

 

[HKEY_CURRENT_USER\Software\Classes\.htm]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.html]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.shtml]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.xhtm]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.xhtml]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.xht]

@="htmlfile"

 

The only work round is to log onto every machine and go into internet explorer and click the default browser button. As we have so many machines this is not a option.

 

Has anyone got a work round.

 

Richard

Posted

Why do you have to remove Google chrome?

 

You can block the Google plugins with the GPO.

 

We run it school wide here with no problems.

Posted

If you create a shortcut from iexplore.exe to your desktop, right click it and specify (for example):

 

"C:\Program Files\Internet Explorer\iexplore.exe" http://www.google.co.uk/

 

I presume you're using Folder Redirection, so just overwrite the shortcuts as required. This should buy you time to remove Chrome.

Posted

We block students from chromes as they have been trying to hack the network with the plugins. Some are installing it which plug ins can be blocked but other are managing to run portable copies that cannot . Have been told to uninstall. Have had to block the .exe with gpo.

 

Richard

Posted
1) prevent users from downloading .exe/.msi files

2) use group policy, software restriction policies to block users from running chrome.exe with a path rule

3) assuming users have roaming appdata, run a search on the server and remove the directories

4) Default Browser via Group policy

 

The students are bringing them on memory stick and moving them to network to run them as blocked under gpo from running exe

Students using client local profiles.

 

Thanks for the link it says to use internet maintenance in gpo but I cannot find it. We have a windows 2012 domain controller. Do I have to update my admx and if so where from.

 

Richard

Posted (edited)

this uninstalls Chrome Please look at bottom for just setting IE as default

 

"uninstall Chrome" bat file

echo on

IF EXIST "%LOCALAPPDATA%\Google\Chrome" (goto _check) else goto _End

:_check

IF EXIST "C:\Program Files\Google\Chrome\Application\chrome.exe" (goto _uninstall) else goto _End

:_uninstall

"\\hp-dc\software$\chrome removal\31.0.1650.57\Installer\setup.exe" --uninstall --chrome --msi --system-level --verbose-logging --force-uninstall

del /q /s /f %LOCALAPPDATA%\Google\Chrome

rmdir /q /s %LOCALAPPDATA%\Google\Chrome

del /f /s /q "C:\Program Files\Google\Chrome\Application\chrome.exe"

del /f /s /q "C:\Users\%username%\Desktop\Google Chrome.lnk"

del /f /s /q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome\Google Chrome.lnk"

rmdir /q /s "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome"

del /q /s /f C:\Program Files\Google\Chrome

rmdir /q /s C:\Program Files\Google\chrome

del /f /s /q "C:\Users\Public\Desktop\Google Chrome.lnk"

REGEDIT.EXE /S "\\SEVER\SHARE$\DIR\removechrome.reg"

:_End

rem *Set IE as Default.*

"\\SERVER\SHARE$\DIR\SETIEASDEFAULT.VBS"

 

"remove chrome.reg"

Windows Registry Editor Version 5.00

 

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\chrome.exe]

[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]

"Chrome"=-

 

 

[-HKEY_CURRENT_USER\SOFTWARE\Classes\ChromeHTML]

[-HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\chrome.exe]

[HKEY_CURRENT_USER\SOFTWARE\RegisteredApplications]

"Chrome"=-

 

 

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Chrome]

[-HKEY_CURRENT_USER\Software\Google\Update\Clients\{8A69D345-D564-463c-AFF1-A69D9E530F96}]

[-HKEY_CURRENT_USER\Software\Google\Update\ClientState\{8A69D345-D564-463c-AFF1-A69D9E530F96}]

 

 

[-HKEY_CURRENT_USER\Software\Google\Update\Clients\{00058422-BABE-4310-9B8B-B8DEB5D0B68A}]

[-HKEY_CURRENT_USER\Software\Google\Update\ClientState\{00058422-BABE-4310-9B8B-B8DEB5D0B68A}]

 

 

[-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Update\ClientStateMedium\{8A69D345-D564-463c-AFF1-A69D9E530F96}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Update\Clients\{8A69D345-D564-463c-AFF1-A69D9E530F96}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Update\ClientState\{8A69D345-D564-463c-AFF1-A69D9E530F96}]

 

 

[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Update\Clients\{8A69D345-D564-463c-AFF1-A69D9E530F96}]

 

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}]

 

[HKEY_CURRENT_USER\Software\Classes\.htm]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.html]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.shtml]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.xhtm]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.xhtml]

@="htmlfile"

 

[HKEY_CURRENT_USER\Software\Classes\.xht]

@="htmlfile"

 

"Set Default Browser " .VBS

I Would recommend you run this as a Per User script also as it apply s to the current user reg keys and if a user has chrome as default and you rip it off no browser will open on clicking links.

Set objShell = CreateObject("WScript.Shell")

 

objShell.RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice\")

objShell.RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice\")

 

t=objShell.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice\Progid","IE.HTTPS","REG_SZ")

t=objShell.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice\Progid","IE.HTTP","REG_SZ")

t=objShell.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice\Progid","IE.FTP","REG_SZ")

 

 

t=objShell.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice\Progid","IE.AssocFile.HTM","REG_SZ")

t=objShell.RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice\Progid","IE.AssocFile.HTM","REG_SZ")

 

t=objShell.RegWrite("HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\","iexplore.exe","REG_SZ")

t=null

 

 

Hope this helps :):p

copy and paste into notepad files and save as respective file types.

Edited by januttall

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



×
×
  • Create New...