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