Par Islah OUALKADI, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT Publiée le 07/02/2005 vers 14h.
Description : Ce script VBS permet d'avoir le nom de la machine.
Script :
Dim Shell Dim CompName Set Shell = Wscript.CreateObject ("Wscript.Shell") CompName = Shell.ExpandEnvironmentStrings ("%COMPUTERNAME%") Msgbox "Le nom de l’ordinateur est " & CompName