Last active
October 3, 2021 12:36
-
-
Save Techlogist/2b2364e00cbad1d674d41f3b3813440a to your computer and use it in GitHub Desktop.
Reset Skype for Business 2016
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM License: GNU General Public License v2.0 | |
REM Author: Miguel | |
REM Website: www.techlogist.net | |
REM Post: https://techlogist.net/batch/reset-skype-for-business-2016 | |
REM Description: Reset Skype for Business 2016 client to defaults in Windows 10 | |
REM OS/Language/Region: Windows/EN-US | |
@echo off | |
title Reset Skype For Business 2016 | |
color f0 | |
mode con:cols=70 lines=15 | |
goto start | |
:start | |
cls | |
for /f "tokens=2" %g IN ('tasklist /svc^|find /i "lyn"') DO taskkill /pid %g >nul | |
set _skype_path=C:\Users\%username%\AppData\Local\Microsoft\Office\16.0\Lync | |
forfiles /P "%_skype_path%" /M * /C "cmd /c if @isdir==FALSE del @file" | |
forfiles /P "%_skype_path%" /M * /C "cmd /c if @isdir==TRUE rmdir /S /Q @file" | |
Start lync | |
:exit | |
cls | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment