Update-VcMdtBundle¶
SYNOPSIS¶
Updates Visual C++ Redistributable application bundles in a Microsoft Deployment Toolkit share.
SYNTAX¶
Update-VcMdtBundle [-MdtPath] <String> [-AppFolder <String>] [[-MdtDrive] <String>] [[-Publisher] <String>]
[[-BundleName] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION¶
After importing or adding Visual C++ Redistributable applications in a Microsoft Deployment Toolkit share, an existing application bundle can be updated with GUIDs for the new Visual C++ Redistributable applications.
The bundle will be updated 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
Update-VcMdtApplication -VcList (Get-VcList) -Path C:\Temp\VcRedist -MdtPath \\server\deployment
Update-VcMdtBundle -MdtPath \\server\deployment
Description: Retrieves the list of Visual C++ Redistributables, downloads them to C:\Temp\VcRedist and updates each Redistributable in the MDT deployment share at \server\deployment.
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¶
A sub-folder of Applications that the Visual C++ Redistributables are in. Defaults to "VcRedists".
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: VcRedists
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: 2
Default value: DS001
Accept pipeline input: False
Accept wildcard characters: False
-Publisher¶
Optionally specify a publisher string to use in the MDT application. Defaults to "Microsoft".
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: Microsoft
Accept pipeline input: False
Accept wildcard characters: False
-BundleName¶
Optionally specify a custom name for the MDT bundle. Defaults to "Visual C++ Redistributables".
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: Visual C++ Redistributables
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