Monday, March 19, 2012

Lync2010 Language Translation via Batch

We already discussed Lync language translation using registry ,Now we are going convert Registry file into batch file.This file useful for  apply via Group Policy compare to registry apply

Windows Registry Editor Version 5.00

"Name"="Conversation Translator"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\\input]

Registry changed into batch file:
If exist "%Temp%\~import.reg" (
 Attrib -R -S -H "%Temp%\~import.reg"
 del /F /Q "%Temp%\~import.reg"
 If exist "%Temp%\~import.reg" (
  Echo Could not delete file "%Temp%\~import.reg"
> "%Temp%\~import.reg" ECHO Windows Registry Editor Version 5.00
>> "%Temp%\~import.reg" ECHO 
>> "%Temp%\~import.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Communicator\ContextPackages\{54C2C31A-A291-4DFA-825A-18994EBE9877}]
>> "%Temp%\~import.reg" ECHO "Name"="Conversation Translator"
>> "%Temp%\~import.reg" ECHO "ExtensibilityApplicationType"=dword:00000000
>> "%Temp%\~import.reg" ECHO "ExtensibilityWindowSize"=dword:00000001
>> "%Temp%\~import.reg" ECHO "DefaultContextPackage"=dword:00000000
>> "%Temp%\~import.reg" ECHO "InternalURL"=""
>> "%Temp%\~import.reg" ECHO "ExternalURL"=""
>> "%Temp%\~import.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\\input]
>> "%Temp%\~import.reg" ECHO "http"=dword:00000002
START /WAIT REGEDIT /S "%Temp%\~import.reg"
DEL "%Temp%\~import.reg"

Now copy above file into notepad Saveas  -> filename.bat.Then apply via Group policy using  logon or startup policy

1 comment:

  1. I blog often and Ι really tɦank you foг your content.
    Thе article haѕ reɑlly peaked mу intеrest. І ɑm going to book mark уouг
    website and kеep checking foг new details about once рer week.
    I opted in for your RSS feed too.

    My web ƿage; gamehide promotion codes