-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservices list.txt
28 lines (16 loc) · 1.25 KB
/
services list.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
list disabled services
Get-Service | Where-Object {$_.StartType -EQ "Disabled"} | Select -Property "Name"
Get-Service | Where-Object {$_.StartType -EQ "Disabled"}
Get-WmiObject -Class Win32_Service | Where-Object {$_.StartMode -eq "Disabled"} | Format-Table Name
Get-WmiObject -Class Win32_Service | Where-Object {$_.StartMode -eq "Disabled"} | Format-Table Name, DisplayName, StartMode -AutoSize
list Manual startup services and are currently running
Get-Service | Where-Object { $_.StartType -eq "Manual" -and $_.Status -eq 'Running' } | Format-Table Name
Get-Service | Where-Object { $_.StartType -eq "Manual" -and $_.Status -eq 'Running' } | Format-Table -Property Name, DisplayName, Status, StartType -AutoSize
list Manual startup services
Get-Service | Where-Object {$_.StartType -eq "Manual"} | Format-Table Name
Get-Service | Where-Object {$_.StartType -eq "Manual"} | Select-Object Name
Get-Service | Where-Object {$_.StartType -eq "Manual"}
Get-WmiObject -Class Win32_Service | Where-Object { $_.StartMode -eq "Manual" } | Format-Table Name, DisplayName, State, StartMode -AutoSize
list running services
Get-Service | Where-Object {$_.Status -EQ "Running"}
Get-Service | Where-Object {$_.Status -EQ "Running"} | Format-Table Name