From 58717d968297029c6bf88add1f7f4514028d15b0 Mon Sep 17 00:00:00 2001 From: Dmitry Teselkin Date: Sun, 10 Mar 2013 14:59:39 +0400 Subject: [PATCH] Code to return DNS listening IPs from DC added --- .../GetDnsIpAddressesOnDc/ExecutionPlan.txt | 7 +++++++ .../GetDnsIpAddressesOnDc/GenerateJSON.bat | 1 + .../Get-DnsListeningIpAddress.ps1 | 3 +++ .../ExecutionPlan/GetDnsIpAddressesOnDc/out.json | 12 ++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/ExecutionPlan.txt create mode 100644 Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/GenerateJSON.bat create mode 100644 Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/Get-DnsListeningIpAddress.ps1 create mode 100644 Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/out.json diff --git a/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/ExecutionPlan.txt b/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/ExecutionPlan.txt new file mode 100644 index 0000000..8440ea5 --- /dev/null +++ b/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/ExecutionPlan.txt @@ -0,0 +1,7 @@ +include Get-DnsListeningIpAddress.ps1 + +call Get-DnsListeningIpAddress + +reboot 0 + +out out.json diff --git a/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/GenerateJSON.bat b/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/GenerateJSON.bat new file mode 100644 index 0000000..0b6aae7 --- /dev/null +++ b/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/GenerateJSON.bat @@ -0,0 +1 @@ +..\ExecutionPlanGenerator.exe ExecutionPlan.txt \ No newline at end of file diff --git a/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/Get-DnsListeningIpAddress.ps1 b/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/Get-DnsListeningIpAddress.ps1 new file mode 100644 index 0000000..dc5d333 --- /dev/null +++ b/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/Get-DnsListeningIpAddress.ps1 @@ -0,0 +1,3 @@ +function Get-DnsListeningIpAddresses { + (Get-DNSServer -ComputerName localhost).ServerSetting.ListeningIpAddress +} diff --git a/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/out.json b/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/out.json new file mode 100644 index 0000000..ee2057c --- /dev/null +++ b/Deployment/ExecutionPlan/GetDnsIpAddressesOnDc/out.json @@ -0,0 +1,12 @@ +{ + "Scripts": [ + "ZnVuY3Rpb24gR2V0LURuc0xpc3RlbmluZ0lwQWRkcmVzc2VzIHsNCiAgICAoR2V0LUROU1NlcnZlciAtQ29tcHV0ZXJOYW1lIGxvY2FsaG9zdCkuU2VydmVyU2V0dGluZy5MaXN0ZW5pbmdJcEFkZHJlc3MNCn0NCg==" + ], + "Commands": [ + { + "Name": "Get-DnsListeningIpAddress", + "Arguments": {} + } + ], + "RebootOnCompletion": 0 +} \ No newline at end of file