Le script suivant affiche une boîte de message avec les informations réseau, comme un ipconfig sous DOS.
Dim strComputer Dim colDrives, strMsg Dim WSHNetwork strComputer = "." Set NetworkPROP = WScript.CreateObject("WScript.Network") Set objWMIService = GetObject _ ("winmgmts:" & "!\" & strComputer & "\root\cimv2") Set colAdapters = objWMIService.ExecQuery _ ("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled = True") For Each objAdapter in colAdapters Msgbox "UserName " & vbTab & "=" & NetworkPROP.UserName & vbCrLf & _ "Host name: " & vbTab & "=" & objAdapter.DNSHostName & vbCrLf & _ "IP address: " & vbTab & "=" & objAdapter.IPAddress(i) & vbCrLf & _ "Description: " & vbTab & "=" & objAdapter.Description & vbCrLf & _ "User Domain: " & vbTab & "=" & NetworkPROP.UserDomain & vbCrLf & _ "Physical address: " & vbTab & "=" & objAdapter.MACAddress & vbCrLf & _ "DHCP enabled: " & vbTab & "=" & objAdapter.DHCPEnabled, _ vbinformation + vbOKOnly + vbmsgboxsetforeground, _ "PROPRIETES RESEAU " Next Set colDrives = NetworkPROP.EnumNetworkDrives If colDrives.Count = 0 Then MsgBox "AUCUN LECTEUR RESEAU ACTIF.", _ vbInformation + vbOkOnly, _ L_Welcome_MsgBox_Title_Text Else strMsg = "CONNECTIONS ACTIVES : " & vbCrLf For i = 0 To colDrives.Count - 1 Step 2 strMsg = strMsg & vbCrLf & colDrives(i) & vbTab & colDrives(i + 1) Next MsgBox strMsg, _ vbInformation + vbOkOnly, _ "CONNECTIONS RESEAU" End If
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
28 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)