cs_Folarin
Messages postés2Date d'inscriptionmardi 9 juin 2009StatutMembreDernière intervention 9 juin 2009
-
9 juin 2009 à 13:29
cs_Folarin
Messages postés2Date d'inscriptionmardi 9 juin 2009StatutMembreDernière intervention 9 juin 2009
-
9 juin 2009 à 14:43
Bonjour a tous,
j'aurais besoin d'un coup de main. Voici la problèmatique :
Voici mon script :
Dim ordinateur
ordinateur=inputbox("Entrez le nom d'ordinateur")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\" & ordinateur & "\root\cimv2")
Set colFiles = objWMIService.ExecQuery _
("Select * from CIM_DataFile where Extension = 'pst'")
Msgbox("Résultat dans quelques instants")
For Each objFile in colFiles
Wscript.Echo objFile.Name
Next
Ce script demande le nom d'ordinateur sur le réseau afin d'y recherche tous les pst existants, mais je souhaite que l'on me complète ce script afin qu'il affiche sur un fichier texte la liste de tous les pst sur un ordinateur on y mettant le chemin de chaque pst.