Skip to content

New-VcMdtBundle

SYNOPSIS

Creates Visual C++ Redistributable applications in a Microsoft Deployment Toolkit share.

SYNTAX

New-VcMdtBundle [-MdtPath] <String> [[-AppFolder] <String>] [-Force] [[-MdtDrive] <String>]
 [[-Publisher] <String>] [[-BundleName] <String>] [[-Language] <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Creates an application in a Microsoft Deployment Toolkit share for each Visual C++ Redistributable and includes properties such as target Silent command line, Platform and Uninstall key.

Use Get-VcList and Save-VcRedist to download the Redistributables and create the array for importing into MDT.

The bundle will be imported into the MDT Deployment share with the default properties similar to the following:

Location: Applications\VcRedists Name: Microsoft Visual C++ Redistributables Comments: Application bundle for installing Visual C++ Redistributables. Generated by New-VcMdtBundle Short name: Visual C++ Redistributables Version:2021-Mar-18 Publisher: Microsoft Language: en-US Dependencies: (VcRedists in the MDT share)

EXAMPLES

EXAMPLE 1

Get-VcList | Save-VcRedist -Path C:\Temp\VcRedist | Import-VcMdtApplication -Path C:\Temp\VcRedist -MdtPath \\server\deployment

Description: Retrieves the list of Visual C++ Redistributables, downloads them to C:\Temp\VcRedist and imports each Redistributable into the MDT deployment share at \server\deployment.

EXAMPLE 2

$VcList = Get-VcList -ExportAll | Save-VcRedist -Path C:\Temp\VcRedist
Import-VcMdtApplication -VcList $VcList -MdtPath \\server\deployment -Bundle

Description: Retrieves the list of supported and unsupported Visual C++ Redistributables in the variable $VcList, downloads them to C:\Temp\VcRedist, imports each Redistributable into the MDT deployment share at \server\deployment and creates an application bundle.

PARAMETERS

-MdtPath

The local or network path to the MDT deployment share.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-AppFolder

Import the Visual C++ Redistributables into a sub-folder. Defaults to "VcRedists".

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: VcRedists
Accept pipeline input: False
Accept wildcard characters: False

-Force

Force the import and overwrite of an existing bundle in the MDT deployment share.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-MdtDrive

Optionally specifiy a name for the PSDrive to use when connecting to the MDT deployment share.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: DS001
Accept pipeline input: False
Accept wildcard characters: False

-Publisher

Optionally specify a publisher string to use in the MDT bundle.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: Microsoft
Accept pipeline input: False
Accept wildcard characters: False

-BundleName

Optionally specify a custom name for the MDT bundle.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: Visual C++ Redistributables
Accept pipeline input: False
Accept wildcard characters: False

-Language

Optionally specify the language property applied to the MDT application.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: En-US
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Management.Automation.PSObject

NOTES

Author: Aaron Parker Twitter: @stealthpuppy

Create a Redistributables bundle in MDT: