From bdde7f53569867791975ea882dc62bf44e5856a2 Mon Sep 17 00:00:00 2001 From: Tony Phipps Date: Fri, 16 Feb 2024 08:38:48 -0700 Subject: [PATCH] Update Get-DomainInfo.psm1 --- Modules/Get-DomainInfo.psm1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Modules/Get-DomainInfo.psm1 b/Modules/Get-DomainInfo.psm1 index 58bf15d..b4a3c2a 100644 --- a/Modules/Get-DomainInfo.psm1 +++ b/Modules/Get-DomainInfo.psm1 @@ -23,11 +23,11 @@ Function Get-DomainInfo { Export-Csv -NoTypeInformation ("c:\temp\" + $Target + "_DomainInfo.csv") } .NOTES - Updated: 2023-08-18 + Updated: 2024-02-16 Contributing Authors: Anthony Phipps, Jack Smith - LEGAL: Copyright (C) 2022 + LEGAL: Copyright (C) 2024 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -108,7 +108,9 @@ Function Get-DomainInfo { foreach ($Result in $ResultsArray){ $Result | Add-Member -MemberType NoteProperty -Name "Host" -Value $env:COMPUTERNAME - $Result | Add-Member -MemberType NoteProperty -Name "DateScanned" -Value $DateScanned + $Result | Add-Member -MemberType NoteProperty -Name "DateScanned" -Value $DateScanned + $Result | Add-Member -MemberType NoteProperty -Name "DCDiagDNSConnectivity" -Value $Result.'DCDiagDNS-Connectivity' + $Result | Add-Member -MemberType NoteProperty -Name "DCDiagDNSDNS" -Value $Result.'DCDiagDNS-DNS' } @@ -128,4 +130,4 @@ Function Get-DomainInfo { Write-Verbose ("Total time elapsed: {0}" -f $elapsed) Write-Verbose ("Ended at {0}" -f ((Get-Date).ToUniversalTime()).ToString("yyyy-MM-dd hh:mm:ssZ")) } -} \ No newline at end of file +}