Public/Start-Lync.ps1
Function Start-Lync { <# .Synopsis Starts Microsoft Lync (Skype for Business) .Description Starts Microsoft Lync (Skype for Business) .Example Start-Lync Start Lync .LINK about_functions_advanced .LINK about_CommonParameters #> [CmdletBinding()] Param() $lync = "$OfficePath\lync.exe" If ($FileExists -eq $true) { If (!(Get-Process Lync -ErrorAction SilentlyContinue)) { Write-Verbose "Starting Lync..." Start-Process $lync } Else { Throw "Lync is allready running!" } } Else { Throw "Lync not found, exiting..." } } |