SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Afficher votre Controleur de Domaine

Accueil > Script > active_directory > Afficher votre Controleur de Domaine

Afficher votre Controleur de Domaine

Par Joachim GOMARD, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 21/10/2004 vers 20h.

Description :
Même s'il existe plusieurs contrôleurs de domaine au sein de votre domaine, il y en a un qui vous sert pour l'authentification. Et bien c'est le nom de ce DC qui vous serra renvoyé grâce à ce script VBS :

Script :
Set objDomain = GetObject("LDAP://rootDse")
objDC = objDomain.Get("dnsHostName")
Wscript.Echo "Authenticating domain controller: " & objDC


Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
10

Visites :
15042

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft