SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




[Virtual Server] - Liste les interfaces réseaux

Accueil > Script > virtual_server > [Virtual Server] - Liste les interfaces réseaux

[Virtual Server] - Liste les interfaces réseaux

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

Description :
Ce script VBS liste les interfaces réseaux de Virtual Server.
Fonctionne uniquement sous Windows Serveur 2003

Script :

On Error Resume Next

Set objVS = CreateObject("VirtualServer.Application")
Set colNetworks = objVS.VirtualNetworks

For Each objNetwork in colNetworks
Wscript.Echo "Bytes dropped: " & objNetwork.BytesDropped
Wscript.Echo "Bytes received: " & objNetwork.BytesReceived
Wscript.Echo "Bytes sent: " & objNetwork.BytesSent
Wscript.Echo "File: " & objNetwork.File
Wscript.Echo "Host adapter: " & objNetwork.HostAdapter
Wscript.Echo "Name: " & objNetwork.Name
Wscript.Echo "Notes: " & objNetwork.Notes
Wscript.Echo "Packets dropped: " & objNetwork.PacketsDropped
Wscript.Echo "Packets received: " & objNetwork.PacketsReceived
Wscript.Echo "Packets sent: " & objNetwork.PacketsSent
Wscript.Echo
Next



Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
1

Visites :
11835

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft