Export/Public/Get-ReceiveAndExpandBusinessCentralDVD.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
function Get-ReceiveAndExpandBusinessCentralDVD {
    [CmdletBinding()]
    <#
    .SYNOPSIS
        Downloads a Business Central DVD
    .DESCRIPTION
        ...
    #>

    param(
        [Parameter(Mandatory = $false)]
        [string]
        $Version = "14",
        [Parameter(Mandatory = $false)]
        [string]
        $CumulativeUpdate = "CU01",
        [Parameter(Mandatory = $false)]
        [string]
        $Language = "W1",
        [Parameter(Mandatory = $false)]
        [string]
        $DownloadDirectory = "C:\Install\",
        [Parameter(Mandatory = $false)]
        [string]
        $TargetDirectoryParent,
        [Parameter(Mandatory = $false)]
        [string]
        $TargetDirectoryName = "DVD"
    )
    process {
        $zipFilename = Receive-BusinessCentralDVD -Version $Version -CumulativeUpdate $CumulativeUpdate -Language $Language
        Expand-BusinessCentralDVD -ZipFilename $zipFilename -TargetDirectoryParent $TargetDirectoryParent -TargetDirectoryName $TargetDirectoryName
    }
}
Export-ModuleMember Get-ReceiveAndExpandBusinessCentralDVD