Skip to content

Instantly share code, notes, and snippets.

@jtuttas
Created March 13, 2013 11:05
Show Gist options
  • Save jtuttas/5151133 to your computer and use it in GitHub Desktop.
Save jtuttas/5151133 to your computer and use it in GitHub Desktop.
Laufenden Prozesse in ein datei schreiben
$services = Get-Service
Get-Date | Set-Content info.txt
"Running Services" | Add-Content info.txt
foreach ($service in $services) {
if ($service.Status -like "Running") {
" "+$service.Name | add-Content info.txt
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment