Public/Get-DnsPlugins.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
function Get-DnsPlugins {
    [CmdletBinding()]
    [OutputType('System.String')]
    param()

    $pluginDir = Join-Path $MyInvocation.MyCommand.Module.ModuleBase 'DnsPlugins'

    (Get-ChildItem (Join-Path $pluginDir *.ps1) -Exclude '_Example.ps1').BaseName | Sort-Object





    <#
    .SYNOPSIS
        List the available DNS plugins
 
    .DESCRIPTION
        The returned values are what should be used with the -DnsPlugin parameter on various other functions.
 
    .EXAMPLE
        Get-DnsPlugins
 
        Get the list of available DnsPlugins
 
    .LINK
        Project: https://github.com/rmbolger/Posh-ACME
 
    .LINK
        New-PACertificate
 
    .LINK
        Publish-DnsChallenge
 
    .LINK
        Get-DnsPluginHelp
 
    #>

}