diff --git a/Uninstall-TeamViewer.ps1 b/Uninstall-TeamViewer.ps1 index a74f1fd..586c67a 100644 --- a/Uninstall-TeamViewer.ps1 +++ b/Uninstall-TeamViewer.ps1 @@ -35,7 +35,7 @@ Else } # Kill all running instances of TeamViewer -Get-Process | Where { $_.Name -like "*TeamViewer*" } | Stop-Process -Force +Get-Process | Where-Object { $_.Name -like "*TeamViewer*" } | Stop-Process -Force If ( Test-Path "${INSTALLDIR}\uninstall.exe" ) { Start-Process "${INSTALLDIR}\uninstall.exe" -ArgumentList "/S" -Wait }