update
This commit is contained in:
7
kill-server.ps1
Normal file
7
kill-server.ps1
Normal file
@@ -0,0 +1,7 @@
|
||||
Get-CimInstance Win32_Process |
|
||||
Where-Object { $_.CommandLine -like '*serve.ps1*' } |
|
||||
ForEach-Object {
|
||||
Write-Host "Dung PID $($_.ProcessId)"
|
||||
Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
Start-Sleep -Seconds 2
|
||||
Reference in New Issue
Block a user