Skip to content

Commit

Permalink
Update Get-DomainInfo.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyPhipps committed Feb 16, 2024
1 parent 573cd5b commit bdde7f5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Modules/Get-DomainInfo.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
}


Expand All @@ -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"))
}
}
}

0 comments on commit bdde7f5

Please sign in to comment.