From 95d0c9d4f7beb876324b7f0e3ba1202c9ca21da4 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Wed, 6 Aug 2025 10:24:08 +0200 Subject: [PATCH] Supprimer Active Directory/List-All-Ressources.ps1 --- Active Directory/List-All-Ressources.ps1 | 48 ------------------------ 1 file changed, 48 deletions(-) delete mode 100644 Active Directory/List-All-Ressources.ps1 diff --git a/Active Directory/List-All-Ressources.ps1 b/Active Directory/List-All-Ressources.ps1 deleted file mode 100644 index e1bce09..0000000 --- a/Active Directory/List-All-Ressources.ps1 +++ /dev/null @@ -1,48 +0,0 @@ -$DNSServer = "10.78.56.8" - -$Zones = @(Get-DnsServerZone -ComputerName $DNSServer) -$Data = @() -ForEach ($Zone in $Zones) { - ($Zone | Get-DnsServerResourceRecord -ComputerName $DNSServer) | ` - Select-Object -Property ` - @{Label="Zone Name";expression={( $Zone.ZoneName )}},` - DistinguishedName,` - HostName,` - RecordClass,` - RecordType,` - Timestamp,` - TimeToLive,` - @{label="Data";expression={ - $r = $_.RecordData - switch ($_.RecordType) - { - "A" { $r.IPv4Address.IPAddressToString } - "NS" { $r.NameServer } - "SOA" { - "ExpireLimit=$($r.ExpireLimit);"+ - "MinimumTimeToLive=$($r.MinimumTimeToLive);"+ - "PrimaryServer=$($r.PrimaryServer);"+ - "RefreshInterval=$($r.RefreshInterval);"+ - "ResponsiblePerson=$($r.ResponsiblePerson);"+ - "RetryDelay=$($r.RetryDelay);"+ - "SerialNumber=$($r.SerialNumber)" - - } - "CNAME" { $r.HostNameAlias } - "SRV"{ - "DomainName=$($r.DomainName);"+ - "Port=$($r.Port);"+ - "Priority=$($r.Priority);"+ - "Weight=$($r.Weight)" - } - "AAAA" { $r.IPv6Address.IPAddressToString } - "PTR" { $r.PtrDomainName } - "MX" { - "MailExchange=$($r.MailExchange);"+ - "Prefreence=$($r.Preference)" - } - "TXT" { $r.DescriptiveText } - Default { "Unsupported Record Type" } - }} - } -} \ No newline at end of file