Skip to content

Commit

Permalink
Stop-Teamviewer implementiert
Browse files Browse the repository at this point in the history
  • Loading branch information
Delapro authored Jun 4, 2020
1 parent b1e6729 commit 2a7f077
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions DLPInstall.PS1
Original file line number Diff line number Diff line change
Expand Up @@ -2513,6 +2513,20 @@ Function Install-Teamviewer {
}
}

# beendet eine laufende Instanz von Teamviewer, falls es sich um einen Dienst handelt, wird dieser vorher beendet
Function Stop-Teamviewer {
[CmdletBinding()]
Param()

If (Get-Service Teamviewer) {
Stop-Service Teamviewer -Force
Start-Sleep -Seconds 1
If (Get-Process Teamviewer) {
Get-Process Teamviewer | Stop-Process -Force
}
}
}

Function Install-AnyDesk {
[CmdletBinding()]
Param(
Expand Down

0 comments on commit 2a7f077

Please sign in to comment.