@echo off
for /f "tokens=*" %%j in (C:\names.txt) do call :PROCESS %%j
goto :EOF
:PROCESS
set host=%*
REM @echo %host%
dsquery * dc=xeht,dc=nhs,dc=uk -filter "(&(objectCategory=Person)(objectClass=User)(displayName=%host%))" -attr legacyExchangeDN
:Exit
for /f "tokens=*" %%j in (C:\names.txt) do call :PROCESS %%j
goto :EOF
:PROCESS
set host=%*
REM @echo %host%
dsquery * dc=xeht,dc=nhs,dc=uk -filter "(&(objectCategory=Person)(objectClass=User)(displayName=%host%))" -attr legacyExchangeDN
:Exit
No comments:
Post a Comment