# If there isn't a running process that contains "lync"... if (!((Get-Process | select ProcessName).ProcessName | where {$_ -like "*lync*"})) { # Find the executable somewhere in program files (x86), and run it. &(where.exe /R "C:\Program Files (x86)\Microsoft Office" "lync.exe") }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter