FILE: C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DnsClient\DnsConfig.Format.ps1xml
--
DnsClientTableView
Microsoft.Management.Infrastructure.CimInstance#MSFT_DNSClient
28
9
Left
24
24
16
13
$alias = $_.InterfaceAlias
$width = 28
$out = $alias
if ($alias.Length -gt $width)
{
$idpresent = $alias -match "(\d+$)"
if ($idpresent -and ($width -gt ($matches[0].length + 3)))
{
$base = $alias.substring(0, $width - ($matches[0].length + 3))
$out = $base + "..." + $matches[0]
}
}
return $out
InterfaceIndex
Right
ConnectionSpecificSuffix
ConnectionSpecificSuffixSearchList
RegisterThisConnectionsAddress
UseSuffixWhenRegistering
DnsClientListView
Microsoft.Management.Infrastructure.CimInstance#MSFT_DNSClient
InterfaceAlias
InterfaceIndex
ConnectionSpecificSuffix
ConnectionSpecificSuffixSearchList
RegisterThisConnectionsAddress
UseSuffixWhenRegistering
DnsClientCacheTableView
Microsoft.Management.Infrastructure.CimInstance#MSFT_DNSClientCache
25
25
6
Left
9
7
6
Left
6
Left
Entry
Name
$type = $_.Type
$typefmt = switch ($type)
{
0 {"ZERO"}
1 {"A"}
2 {"NS"}
5 {"CNAME"}
6 {"SOA"}
12 {"PTR"}
15 {"MX"}
16 {"TEXT"}
24 {"SIG"}
25 {"KEY"}
28 {"AAAA"}
30 {"NXT"}
33 {"SRV"}
35 {"NAPTR"}
37 {"CERT"}
39 {"DNAME"}
41 {"OPT"}
43 {"DS"}
46 {"RRSIG"}
47 {"NSEC"}
48 {"DNSKEY"}
49 {"DHCID"}
50 {"NSEC3"}
51 {"NSEC3PARAM"}
255 {""}
default {$type}
}
return $typefmt
$status = $_.Status
$statusfmt = switch ($status)
{
0 {"Success"}
1460 {"Timeout"}
9002 {"ServFail"}
9003 {"NotExist"}
9501 {"NoRecords"}
default {$status}
}
return $statusfmt
$section = $_.Section
$sectionfmt = switch ($section)
{
0 {""}
1 {"Answer"}
2 {"Authority"}
3 {"Additional"}
default {$section}
}
return $sectionfmt
$ttl = $_.TimeToLive
$ttlfmt = switch ($ttl)
{
0 {""}
default {$ttl}
}
return $ttlfmt
Right
$length = $_.DataLength
$lengthfmt = switch ($length)
{
0 {""}
default {$length}
}
return $lengthfmt
Right
Data
DnsClientCacheListView
Microsoft.Management.Infrastructure.CimInstance#MSFT_DNSClientCache
Entry
Name
$type = $_.Type
$typefmt = switch ($type)
{
0 {"ZERO"}
1 {"A"}
2 {"NS"}
5 {"CNAME"}
6 {"SOA"}
12 {"PTR"}
15 {"MX"}
16 {"TEXT"}
24 {"SIG"}
25 {"KEY"}
28 {"AAAA"}
30 {"NXT"}
33 {"SRV"}
35 {"NAPTR"}
37 {"CERT"}
39 {"DNAME"}
41 {"OPT"}
43 {"DS"}
46 {"RRSIG"}
47 {"NSEC"}
48 {"DNSKEY"}
49 {"DHCID"}
50 {"NSEC3"}
51 {"NSEC3PARAM"}
255 {""}
default {$type}
}
return $typefmt
$status = $_.Status
$statusfmt = switch ($status)
{
0 {"Success"}
1460 {"Timeout"}
9002 {"ServFail"}
9003 {"NotExist"}
9501 {"NoRecords"}
default {$status}
}
return $statusfmt
$section = $_.Section
$sectionfmt = switch ($section)
{
0 {""}
1 {"Answer"}
2 {"Authority"}
3 {"Additional"}
default {$section}
}
return $sectionfmt
$ttl = $_.TimeToLive
$ttlfmt = switch ($ttl)
{
0 {""}
default {$ttl}
}
return $ttlfmt
$length = $_.DataLength
$lengthfmt = switch ($length)
{
0 {""}
default {$length}
}
return $lengthfmt
Data
DnsClientGlobalSettingListView
Microsoft.Management.Infrastructure.CimInstance#MSFT_DNSClientGlobalSetting
UseSuffixSearchList
SuffixSearchList
UseDevolution
DevolutionLevel
DnsClientGlobalSettingTableView
Microsoft.Management.Infrastructure.CimInstance#MSFT_DNSClientGlobalSetting
UseSuffixSearchList
SuffixSearchList
UseDevolution
DevolutionLevel
DnsClientServerAddressTableView
Microsoft.Management.Infrastructure.CimInstance#MSFT_DNSClientServerAddress
28
9
Left
7
Left
$alias = $_.InterfaceAlias
$width = 28
$out = $alias
if ($alias.Length -gt $width)
{
$idpresent = $alias -match "(\d+$)"
if ($idpresent -and ($width -gt ($matches[0].length + 3)))
{
$base = $alias.substring(0, $width - ($matches[0].length + 3))
$out = $base + "..." + $matches[0]
}
}
return $out
InterfaceIndex
Right
$family = $_.AddressFamily
$familyfmt = switch ($family)
{
2 {"IPv4"}
23 {"IPv6"}
default {$family}
}
return $familyfmt
ServerAddresses
DnsClientServerAddressListView
Microsoft.Management.Infrastructure.CimInstance#MSFT_DNSClientServerAddress
InterfaceAlias
InterfaceIndex
$family = $_.AddressFamily
$familyfmt = switch ($family)
{
2 {"IPv4"}
23 {"IPv6"}
default {$family}
}
return $familyfmt
ServerAddresses
--