[THIN] Re: Language Bar

  • From: Jeremy Saunders <Jeremy.Saunders@xxxxxxxxxxxxxx>
  • To: "thin@xxxxxxxxxxxxx" <thin@xxxxxxxxxxxxx>
  • Date: Thu, 21 Oct 2010 14:47:43 +0000

Hi Bruce,

Sorry that was the 32-bit only one. Try this one, which handles 64-bit too, and 
therefore Windows 2008 R2. Joe has a point though. Resources were scarce under 
32-bit, which is really not such an issue under 64-bit. But still...some of us 
are set in our ways :)

---------------------------start of .cmd script------------------------

:: Disable the Language Bar
IF EXIST %SystemRoot%\system32\MSCTF.dll regsvr32 /u /s 
%SystemRoot%\system32\MSCTF.dll
IF EXIST %SystemRoot%\system32\MSUTB.dll regsvr32 /u /s 
%SystemRoot%\system32\MSUTB.dll
IF /I NOT "%PROCESSOR_ARCHITECTURE%"=="x86" (
IF EXIST %SystemRoot%\SysWOW64\MSCTF.dll regsvr32 /u /s 
%SystemRoot%\system32\MSCTF.dll
IF EXIST %SystemRoot%\sysWOW64\MSUTB.dll regsvr32 /u /s 
%SystemRoot%\system32\MSUTB.dll
)

:: Disable CTFMON the easy way by denying Users the ability to execute it
TAKEOWN /f "%SystemRoot%\System32\ctfmon.exe"
ICACLS "%SystemRoot%\System32\ctfmon.exe" /remove:g Users /deny Users:(X) 
/grant Administrators:F /grant System:F
ICACLS "%SystemRoot%\System32\ctfmon.exe" /setowner "NT 
Service\TrustedInstaller"

IF /I NOT "%PROCESSOR_ARCHITECTURE%"=="x86" (
TAKEOWN /f "%SystemRoot%\SysWOW64\ctfmon.exe"
ICACLS "%SystemRoot%\SysWOW64\ctfmon.exe" /remove:g Users /deny Users:^(X^) 
/grant Administrators:F /grant System:F
ICACLS "%SystemRoot%\SysWOW64\ctfmon.exe" /setowner "NT 
Service\TrustedInstaller"
)

:: Hide language bar for the .Default user
SET KEY=HKU\.DEFAULT\Software\Microsoft\CTF
REG ADD "%KEY%\LangBar" /V ShowStatus /T REG_DWORD /D 0 /F
REG ADD "%KEY%\MSUTB" /V ShowDeskBand /T REG_DWORD /D 0 /F

:: Remove CTFMON from the Run key
SET KEY=HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run
REG DELETE "%KEY%" /v "CTFMON.EXE" /f

---------------------------end of .cmd script------------------------

Cheers,
Jeremy.

From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of 
Joe Shonk
Sent: Thursday, 21 October 2010 10:38 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Language Bar

Any particular reason it must die?  It seems as Microsoft really really wants 
it to be there.

Joe

From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of 
Bruce Ricker
Sent: Thursday, October 21, 2010 7:25 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Language Bar

i must be missing something.  I have my own script that similar but it wasnt 
working....works fine on 2003

i've applied jeremy's cmd as an admin.  killed all cached and roaming profiles 
for users, tried again and no dice.  i've also called the vbs in usrlogon2 and 
still see the lang bar when launching excel.
On Thu, Oct 21, 2010 at 4:41 AM, Jim Kenzig 
<jkenzig@xxxxxxxxx<mailto:jkenzig@xxxxxxxxx>> wrote:
Nice! Good one Jeremy.
Jim Kenzig
http://www.kenzig.com<http://www.kenzig.com/>


On Wed, Oct 20, 2010 at 2:21 PM, Bruce Ricker 
<brucericker@xxxxxxxxx<mailto:brucericker@xxxxxxxxx>> wrote:
The Office Language Bar used to be so easy to remove on Server 2003.  Does any 
one have a step by step on how to do this on 2008R2? Should i just pop a reg 
key into CU?



#####################################################################################
Confidentiality and Privilege Notice 
This document is intended solely for the named addressee.  The information 
contained in the pages is confidential and contains legally privileged 
information. If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you may not copy or 
deliver this message to anyone, and you should destroy this message and kindly 
notify the sender by reply email. Confidentiality and legal privilege are not 
waived or lost by reason of mistaken delivery to you.
#####################################################################################

Other related posts: