Delen via


Set-CMMobileMsiDeploymentType

SYNOPSIS

Hiermee stelt u een implementatietype Windows installatieprogramma voor mobiele apparaten in.

SYNTAX

ByAppName (standaard)

Set-CMMobileMsiDeploymentType [-InstallCommand <String>] [-AddRequirement <Rule[]>] -ApplicationName <String>
 [-ContentLocation <String>] -DeploymentTypeName <String> [-NewName <String>] [-PassThru]
 [-RemoveLanguage <String[]>] [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>] [-Comment <String>]
 [-Force] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

ByAppValue

Set-CMMobileMsiDeploymentType [-InstallCommand <String>] [-AddRequirement <Rule[]>]
 -Application <IResultObject> [-ContentLocation <String>] -DeploymentTypeName <String> [-NewName <String>]
 [-PassThru] [-RemoveLanguage <String[]>] [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>]
 [-Comment <String>] [-Force] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
 [<CommonParameters>]

ByAppId

Set-CMMobileMsiDeploymentType [-InstallCommand <String>] [-AddRequirement <Rule[]>] -ApplicationId <Int32>
 [-ContentLocation <String>] -DeploymentTypeName <String> [-NewName <String>] [-PassThru]
 [-RemoveLanguage <String[]>] [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>] [-Comment <String>]
 [-Force] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

ByDTValue

Set-CMMobileMsiDeploymentType [-InstallCommand <String>] [-AddRequirement <Rule[]>] [-ContentLocation <String>]
 -InputObject <IResultObject> [-NewName <String>] [-PassThru] [-RemoveLanguage <String[]>]
 [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>] [-Comment <String>] [-Force]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Met de cmdlet Set-CMMobileMsiDeploymentType worden de instellingen voor een implementatietype voor een Windows-installatieprogramma gewijzigd.

Notitie

Voer Configuration Manager cmdlets uit vanaf Configuration Manager-sitestation, bijvoorbeeld PS XYZ:\> . Zie Aan de slag voor meer informatie.

EXAMPLES

Voorbeeld 1: Een implementatietype voor een Windows-installatieprogramma wijzigen

PS XYZ:\> Set-CMMobileMsiDeploymentType -ApplicationName "testMobile" -DeploymentTypeName "DTMobile" -NewName "DTMobile_Updated" -ContentLocation "\\Server01\Resources\Applications\MSI\32BitSDK\test\32BitCompat.msi" -PassThru -Confirm -Comment "test-set-CMMobileMsiDeploymentType"

Met deze opdracht wordt de naam van het implementatietype van het mobiele Windows Installer met de naam DTMobile voor de toepassing met de naam testMobile gewijzigd in DTMobile_Updated, en wordt een beschrijving toegevoegd. De PassThru parameter geeft aan dat een object wordt geretourneerd met deze opdracht en de bevestigen parameter geeft aan dat de gebruiker wordt gevraagd om bevestiging voordat de opdracht wordt uitgevoerd.

Voorbeeld 2: een implementatietype voor Windows-installatieprogramma wijzigen met behulp van de pijplijn

PS XYZ:\> Get-CMDeploymentType -ApplicationName "testMobile" -DeploymentTypeName "DTMobile_Updated" | Set-CMMobileMsiDeploymentType -NewName "DTMobile" -ContentLocation "\\Server01\Resources\Applications\MSI\32BitSDK\32BitCompat.msi" -PassThru -DisableWildcardHandling -Comment "test-set-CMMobileMsiDeploymentType"

Met deze opdracht wordt het mobile Windows Installer-implementatietypeobject met de naam DTMobile_Updated voor de toepassing met de naam testMobile opgeslagen en wordt de pijplijnoperator gebruikt om het object door te geven aan Set-CMMobileMsiDeploymentType. Set-CMMobileMsiDeploymentType wijzigt de naam van het implementatietype in DTMobile, schakelt de verwerking van jokertekens uit en voegt een beschrijving toe. De PassThru parameter geeft aan dat een object wordt geretourneerd met deze opdracht.

PARAMETERS

-AddLanguage

Voegt een matrix van talen toe die door dit implementatietype worden ondersteund. Geef de talen op in de indeling 'languagecode2 country' of 'languagecode2', bijvoorbeeld: en, en-US, ja-JP, zh-CN.

Zie voor meer informatie CultureInfo.Name.

Type: String[]
Parameter Sets: (All)
Aliases: AddLanguages, Languages, Language

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

-AddRequirement

Voegt een matrix met vereisten voor dit implementatietype toe.

Type: Rule[]
Parameter Sets: (All)
Aliases:

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

-Toepassing

Hiermee geeft u een toepassingsobject op dat is gekoppeld aan dit implementatietype. Gebruik de cmdlet Get-CMApplication om een toepassingsobject te verkrijgen.

Type: IResultObject
Parameter Sets: ByAppValue
Aliases:

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

-ApplicationId

Hiermee geeft u de id van de toepassing die is gekoppeld aan dit implementatietype.

Type: Int32
Parameter Sets: ByAppId
Aliases: CI_ID, CIId

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

-ApplicationName

Hiermee geeft u de naam van de toepassing die is gekoppeld aan dit implementatietype.

Type: String
Parameter Sets: ByAppName
Aliases:

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

-Opmerking

Hiermee geeft u een beschrijving voor dit implementatietype.

Type: String
Parameter Sets: (All)
Aliases: AdministratorComment

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

-Confirm

Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.

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

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

-ContentLocation

Hiermee geeft u het pad naar een .msi bestand. De sitesysteemserver heeft machtigingen nodig om de inhoudsbestanden te lezen.

Type: String
Parameter Sets: (All)
Aliases:

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

-DeploymentTypeName

Hiermee geeft u een weergavenaam voor dit implementatietype.

Type: String
Parameter Sets: ByAppName, ByAppValue, ByAppId
Aliases:

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

-DisableWildcardHandling

Deze parameter behandelt jokertekens als letterlijke tekenwaarden. U kunt deze niet combineren met ForceWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Force

Dwingt de opdracht uit te voeren zonder te vragen om bevestiging van de gebruiker.

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

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

-ForceWildcardHandling

Deze parameter verwerkt jokertekens en kan leiden tot onverwacht gedrag (niet aanbevolen). U kunt deze niet combineren met DisableWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-InputObject

Hiermee geeft u een mobile MSI-implementatietypeobject op. Als u een implementatietypeobject wilt verkrijgen, gebruikt u de cmdlet Get-CMDeploymentType.

Type: IResultObject
Parameter Sets: ByDTValue
Aliases: DeploymentType

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

-InstallCommand

Hiermee geeft u de opdracht te gebruiken voor het installeren van Windows installatieprogramma-pakket vanaf de opdrachtregel.

Type: String
Parameter Sets: (All)
Aliases:

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

-NewName

Hiermee geeft u een nieuwe naam voor dit implementatietype.

Type: String
Parameter Sets: (All)
Aliases: NewDeploymentTypeName

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

-PassThru

Voeg deze parameter toe om een object te retourneren dat het item vertegenwoordigt waarmee u werkt. Standaard is het mogelijk dat deze cmdlet geen uitvoer genereert.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-RemoveLanguage

Hiermee verwijdert u een matrix met bestaande talen van dit implementatietype. Geef de talen op in de indeling 'languagecode2 country' of 'languagecode2', bijvoorbeeld: en, en-US, ja-JP, zh-CN.

Type: String[]
Parameter Sets: (All)
Aliases: RemoveLanguages

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

-RemoveRequirement

Hiermee verwijdert u de bestaande installatievereisten van dit implementatietype.

Type: Rule[]
Parameter Sets: (All)
Aliases: RemoveRequirements

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

-WhatIf

Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.

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

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

CommonParameters

Deze cmdlet biedt ondersteuning voor de meest gebruikte parameters: -Debug, - ErrorAction, - ErrorVariable, - InformationAction, -InformationVariable, - OutVariable,-OutBuffer, - PipelineVariable - Verbose, - WarningAction en -WarningVariable. Zie voor meer informatie about_CommonParameters.

INPUTS

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

OUTPUTS

System.Object

OPMERKINGEN

Add-CMMobileMsiDeploymentType

Get-CMApplication

Get-CMDeploymentType