Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
867 connectés 

  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  PB connection ....... objWMIService

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

PB connection ....... objWMIService

n°1200786
cat82
Posté le 16-09-2005 à 07:39:57  profilanswer
 

Bonjour
 
Je programme un script pour les imprimantes
Voila le debut  
 
Set objWMIService = Nothing
Set colItems = Nothing
Wscript.echo "winmgmts:\\" & strComputer & "\root\CIMV2"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2" )
Set colItems = objWMIService.ExecQuery("SELECT Message FROM Win32_NTLogEvent where logfile = 'system' and sourcename = 'print' and type = 'Information' and eventcode = '10'", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
 
voila ma connectionTout se passe bien  
J'ai essayé avec plusieurs serveurs d'impressions 10 Tout marche pour l'instant
et là je suis tombé sur un serveur d'impression où il ne me fait pas la connection  
 
 
vraiement bizarre car le serveur d'avant FRASPRN23 tout fonctionne  
je pense au FRASPRN24 erreur à cette ligne il me fait pas la connection .....
 
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2" )
 
Quelqu'un peut m'expliquer ?
 
Merci

mood
Publicité
Posté le 16-09-2005 à 07:39:57  profilanswer
 

n°1201065
cat82
Posté le 16-09-2005 à 13:47:30  profilanswer
 

up

n°1202074
cat82
Posté le 19-09-2005 à 09:27:21  profilanswer
 

up

n°1203683
AlainTech
Pas trouvé? Cherche encore!
Posté le 20-09-2005 à 17:56:56  profilanswer
 

Sans y connaître grand'chose sur ce type de connexion, je dirais: problème dans le nom du serveur.
 
Un espace (ou autre caractère caché) au début ou à la fin?


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  PB connection ....... objWMIService

 

Sujets relatifs
Pb "too connection" a mon serveur mysqlconnection de plusieurs tables avec ado (access)
connection internet sous linuxProblème de connection à SQL Server depuis ASP.NET
connection mysql avec dreamweaver[Oracle] monitoring, historique connection
Connection sql serveurConnection odbc
Pb connection à MySQL en PHPConnection as400
Plus de sujets relatifs à : PB connection ....... objWMIService


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)