Skip to content

Instantly share code, notes, and snippets.

@rainbowflesh
Last active November 1, 2024 05:30
Show Gist options
  • Select an option

  • Save rainbowflesh/1c1b42024c6545f2b065da2ddcc0addd to your computer and use it in GitHub Desktop.

Select an option

Save rainbowflesh/1c1b42024c6545f2b065da2ddcc0addd to your computer and use it in GitHub Desktop.
Kill M$ OneDrive Sh*t self propagating process FileCoAuth.exe
$processes = Get-Process -Name 'FileCoAuth' -ErrorAction SilentlyContinue
if ($processes) {
foreach ($process in $processes) {
try {
Stop-Process -Id $process.Id -Force
Write-Host "Stopped process: $($process.Name) with ID: $($process.Id)"
}
catch {
Write-Host "Failed to stop process: $($process.Name) with ID: $($process.Id). Error: $_"
}
}
}
else {
Write-Host "No processes named 'FileCoAuth.exe' were found."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment