# Get-Service
get-service -displayname 'Background Intelligent Transfer Service'
get-service | where {($_.status -eq "Running") -and ($_.CanStop -eq $true)}
get-service | where {($_.status -eq "Running") -and !($_.CanStop -eq $true)} # Negation
get-service | ? { $_.status -eq 'running' -and ($_.canstop) }
get-service | ? { $_.status -eq 'running' -and !($_.canstop) } # Negation
Get-Service | Get-Member canstop
# Sort and Select:
Get-Service | Sort-Object WorkingSet,DisplayName -Descending | select -First 5
get-service -displayname 'Background Intelligent Transfer Service'
get-service | where {($_.status -eq "Running") -and ($_.CanStop -eq $true)}
get-service | where {($_.status -eq "Running") -and !($_.CanStop -eq $true)} # Negation
get-service | ? { $_.status -eq 'running' -and ($_.canstop) }
get-service | ? { $_.status -eq 'running' -and !($_.canstop) } # Negation
Get-Service | Get-Member canstop
# Sort and Select:
Get-Service | Sort-Object WorkingSet,DisplayName -Descending | select -First 5
Комментариев нет:
Отправить комментарий