-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadquery_dns_host_launcher.bat
37 lines (32 loc) · 1.04 KB
/
adquery_dns_host_launcher.bat
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
33
34
35
36
37
@echo off
REM turns off script execution restrictions for Powershell
REM Version: 1.0 20130923 Author: Dennis Chow dchow [AT] xtecsystems.com
REM This script is licensed under GPL v3
echo About:
cls
echo .
echo About:
echo This script uses the System.Net.Dns calls for IPv4 resolution from an expanded AD Computername Query into a CSV file.
echo .
echo Notes: Becareful in using 0 (aka no limit) if you've got a non-specific search. You must be have .NET 3.0 framework installed and above.
echo .
echo Instructions: Follow prompts on screen.
echo .
SET /P ANSWER=Select (1) Continue (2) Exit?
echo You chose: %ANSWER%
if /i {%ANSWER%}=={1} (goto :continue)
if /i {%ANSWER%}=={2} (goto :exit)
goto :exit
:continue
echo Starting up...
REM turns off script execution restrictions for Powershell
powershell.exe -executionpolicy unrestricted -command .\adquery_dns_host_search.ps1
echo Press any key to exit...
pause
REM using /b with the exit parameters exits subroutine but not cmd.exe
exit /b 0
:exit
echo Starting up...
echo Press any key to exit...
pause
exit /b 1