La Référence Absolue sur les Technologies Microsoft




Lister les services arrêtés

Accueil > Script > maintenance > Lister les services arrêtés

Lister les services arrêtés

Par Joachim GOMARD, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 27/10/2004 vers 16h.

Description :
Ce script VBS liste les services arrétés.

Script :

strComputer = "."
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=Impersonate}!\\" & strComputer & "\root\cimv2")

Set colStoppedServices = objWMIService.ExecQuery _
("Select * From Win32_Service Where State <> 'Running'")

For Each objService in colStoppedServices
Wscript.Echo objService.DisplayName & " = " & objService.State
Next



Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
1

Visites :
11718

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft