Advertisement
PowerShell_PC_Aide

Uninstall Skype Entreprise 2016.ps1

Feb 25th, 2020
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2. ---------------------------------------------------------------------------  
  3.     Name                           Version          Arch
  4.     ----                           -------          ------
  5.     Skype Entreprise Basic 2016    16.0.4849.1000   32
  6.  
  7.  
  8.     Shortcut : C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Skype Entreprise 2016.lnk
  9.  
  10.     ------------------------
  11.     https://imgur.com/KHhUZuP
  12.     -------------------------
  13.         /Uninstall [ProductID] -> Where ProductID can find out into the SETUP.xml for the product
  14. ---------------------------------------------------------------------------
  15. #>
  16.  
  17. $Path_InstDir = "${env:ProgramFiles(x86)}\Common Files\microsoft shared\OFFICE16\Office Setup Controller"
  18. $data = @"
  19. <?xml version="1.0"?>
  20. <Configuration Product="Lync">
  21. <Display AcceptEula="yes" SuppressModal="yes" CompletionNotice="no" Level="none"/>
  22. </Configuration>
  23. "@
  24. #xml
  25. $data | out-file "$Path_InstDir\RemoveSkype.xml"
  26.  
  27. #Time uninstall ~1 min
  28. Stop-Process -Name lync -Force -ErrorAction 0
  29. Start-Process -Wait "$Path_InstDir\Setup.exe" -ArgumentList "/uninstall lyncEntry","/config .\RemoveSkype.xml"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement