PoshCode Archive  Artifact [f1b359c3f3]

Artifact f1b359c3f305591ed1de58a9e4e754fb835373b38df6ea3cdbad545002735d6b:

  • File Services-Auto-NotRunning.ps1 — part of check-in [7ac3c57558] at 2018-06-10 13:15:23 on branch trunk — Check if all the services with StartMode AUTOMATIC are actually Running (user: LazyWinAdmincom size: 527)

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