Files
THE-TOOL/CMD/Aktivierung/SYSTEM ENABLE LYNCADDON.bat
2025-12-14 15:46:14 +01:00

43 lines
2.0 KiB
Batchfile

@echo off
::
echo *******************************************************************************
echo *******************************************************************************
echo ******** Lync Addon konfigurieren ********
echo *******************************************************************************
echo *******************************************************************************
::User-spezifische Einträge löschen
@setlocal
set "RegPath=HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList"
set "SID="
for /f "delims=" %%i in ('reg query "%RegPath%"^|findstr /ibc:"%RegPath%\S-"') do (
echo %%~nxi & REG DELETE "HKU\%%~nxi\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{31D09BA0-12F5-4CCE-BE8A-2923E76605DA}" /f & REG DELETE "HKU\%%~nxi\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{761497BB-D6F0-462C-B6EB-D4DAF1D92D43}" /f & REG DELETE "HKU\%%~nxi\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}" /f
)
)
sleep 1
echo ******** Systemreg fuer Addon hinzufuegen
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ext\CLSID" /v {31D09BA0-12F5-4CCE-BE8A-2923E76605DA} /d 1 /f
::REG DELETE "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{31D09BA0-12F5-4CCE-BE8A-2923E76605DA}" /f
::InternetExplorer öffnen und schließen
echo ******** iexplore oeffnen
start iexplore
sleep 7
echo ******** iexplorer schliessen
Taskkill /F /IM iexplorer.exe /T 2>NUL
echo ******** iexplore schliessen
Taskkill /F /IM iexplore.exe /T 2>NUL
echo *******************************************************************************
echo *******************************************************************************
echo ******** Lync Addon konfiguration abgeschlossen ********
echo *******************************************************************************
echo *******************************************************************************