Situatie
Se doreste o lista cu serviciile din windows care ruleaza dar care sunt si oprite.
Solutie
- Export List of Running and Stopped Services in PowerShell
- (Listeaza toate serviciile pornite si oprite si le exporta intr-un fisier .csv file)
Get-Service | Select StartType, Status, Name, DisplayName | Export-Csv -path “D:\temp\All-Services.csv”
- Listeaza toate serviciile pornite si le exporta intr-un fisier .csv file)
Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq ‘Running’} | Export-Csv -path “D:\temp\Running-Services.csv”
- (Listeaza toate serviciile oprite si le exporta intr-un fisier .csv file)
Get-Service | Select StartType, Status, Name, DisplayName | Where-Object {$_.Status -eq ‘Stopped’} | Export-Csv -path “D:\temp\Stopped-Services.csv”
Leave A Comment?