SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Liste les services arrêtés

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

Liste les services arrêtés

Par Nicolas MILBRAND, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 07/03/2005 vers 21h.

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 DisplayName,State 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 :
9129

1
2
3
4
5

Script Précédent :

Suppression d'un service



Retrouvez ci-dessous les autres sections du Laboratoire Microsoft

Définitions

Accès direct aux définitions :
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Effectuez une recherche dans les définitions :