I used this in my script before triggering an upgrade from Office 2016 to Office 365:
Show-InstallationWelcome -CloseApps ‘lync,outlook,winword,excel,powerpnt,msaccess,mspub,onenote,visio’ -AllowDefer -DeferTimes 10 -PersistPrompt -PromptToSave -BlockExecution -CheckDiskSpace -RequiredDiskSpace 4000
Frequently, when the option “Close Programs” is used, it fails to kill Skype for Business (lync.exe). Instead, the Skype window is maximized.
Nothing special is happening in that Skype window at the moment (not in a conf call or anything).
When I manually use Stop-Process in a powershell window, Skype does close properly.
Anyone else seen this behaviour ?
Any idea how I can get it to (always) close instead of (sometimes) maximize ?