OfficeDev / Office-IT-Pro-Deployment-Scripts

A collection of useful PowerShell scripts to make deploying Office 2016 and Office 365 ProPlus easier for IT Pros and administrators. If you have any feature requests or ideas for future scripts please add the idea to the issues list in this repository
http://officedev.github.io/Office-IT-Pro-Deployment-Scripts
MIT License
887 stars 840 forks source link

Skype for Business Basic is not removed #287

Open scottbreen opened 7 years ago

scottbreen commented 7 years ago

The script doesn't appear to detect and remove Skype for Business Basic when selecting "Lync" as a product type to remove. It would be good if you could specify to remove it.

https://www.microsoft.com/en-au/download/details.aspx?id=49440

scottbreen commented 7 years ago

If I add some code (in bold) to the section from line 563:

switch($LyncProduct.Version){ "1" { $ActionFile = "$scriptPath\$03VBS" } "2" { $ActionFile = "$scriptPath\$07VBS" } "4" { $ActionFile = "$scriptPath\$10VBS" }

added code by breens

                        **"16" {
                            if($Remove2016Installs){
                                $ActionFile = "$scriptPath\$16MSIVBS"
                            }
                        }**
                    }

and the following code at line 310 (new in bold):

$LyncProduct = GetProductName -ProductName Lync $LyncProduct += GetProductName -ProductName Skype

Skype for Business Basic is successfully removed.