Par Joachim GOMARD, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT Publiée le 21/10/2004 vers 20h.
Description : Vous avez toujours voulu savoir à quel site vous appartenez dans votre domaine. Et bien ce script VBS permet de vous renvoyer le nom du site auquel votre machine appartient :
Script : Set objADSysInfo = CreateObject("ADSystemInfo") WScript.Echo "Current site name: " & objADSysInfo.SiteName