PoshCode Archive  Artifact [e5438667ec]

Artifact e5438667ec4c1a19b0ae47fc45d1b6c236a4b9a499926c0703745218c8aa4e8e:

  • File Services-Auto-NotRunning.ps1 — part of check-in [2084a1394a] at 2018-06-10 13:15:22 on branch trunk — Check if all the services with StartMode AUTOMATIC are actually Running (user: Xavier C size: 528)

# encoding: ascii
# api: powershell
# title: Services Auto NotRunning
# description: Check if all the services with StartMode AUTOMATIC are actually Running
# version: 0.1
# author: Xavier C
# license: CC0
# x-poshcode-id: 2759
# x-derived-from-id: 2760
# x-archived: 2015-10-20T07:02:54
# x-published: 2011-06-29T19:37:00
#
#
Get-WmiObject Win32_Service -ComputerName . |`
	where 	{($_.startmode -like "*auto*") -and `
		($_.state -notlike "*running*")}|`
	select DisplayName,Name,StartMode,State|ft -AutoSize