Sha256: 61e0a10860507dfc7b2267850b306adf635d1ccbc9d8ad90777db0b7d7a24332

Contents?: true

Size: 140 Bytes

Versions: 13

Compression:

Stored size: 140 Bytes

Contents

function FindService
{
  param($name)
  Get-WmiObject Win32_Service | Where-Object {$_.serviceName -eq $name -or $_.displayName -eq $name}
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
serverspec-0.10.3 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.10.2 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.10.1 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.10.0 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.9.8 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.9.7 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.9.6 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.9.5 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.9.4 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.9.3 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.9.2 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.9.1 lib/serverspec/backend/powershell/support/find_service.ps1
serverspec-0.9.0 lib/serverspec/backend/powershell/support/find_service.ps1