Bonjour,

Je cherche à récupérer les adresses IP d'une liste des machines que j'ai sur AD.

J'ai le script suivant avec la liste des machine que j'indique comme argument. lorsque je lance mon script je reçoit le message suivant Echo activee et la fêntre reste bloqué. est ce que vous pouvez m'aider à réctifier ce script
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@TITLE Testping %date%  %username% %time%
@if (%1)==() goto usage

@if not exist %1 goto FILENOTFOUND1

@goto RUN

:USAGE
@echo.
@echo testping.cmd list.txt
@echo.
@echo 	- file.txt		Name of file containing arguments
@echo.
@echo   Will test if the computer in list.txt are reachables or not.
@exit /b 40
@goto FIN

:FILENOTFOUND1
@echo.
@echo 		File %1 was not found ...
@exit /b 42
@echo.
@goto FIN

:RUN
@echo.

@echo  List of computers ON line:
@echo  --------------------------
@FOR /F "eol=; tokens=1" %%A IN (%1) DO @NSLOOKUP 1 %%A >nul  && echo %DNS%
@echo.

:FIN


Merci pour l'aide.