powershell-scripts/windows/Uninstall-IPerf3ServerService.ps1
2024-09-13 15:56:54 -04:00

8 lines
279 B
PowerShell

$Service = Get-Service -Name iperf3server -ErrorAction SilentlyContinue
if ($null -eq $Service) {
Write-Host "Service is not installed"
} else {
& "C:\Program Files\nssm\win64\nssm.exe" stop iperf3server
& "C:\Program Files\nssm\win64\nssm.exe" remove iperf3server
}