Skip to main content

Set-MsiProperty

SYNOPSISโ€‹

Set a property in the MSI property table.

SYNTAXโ€‹

Set-MsiProperty [-DataBase] <__ComObject> [-PropertyName] <String> [-PropertyValue] <String>
[[-ContinueOnError] <Boolean>] [<CommonParameters>]

DESCRIPTIONโ€‹

Set a property in the MSI property table.

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Set-MsiProperty -DataBase $TempMsiPathDatabase -PropertyName 'ALLUSERS' -PropertyValue '1'

PARAMETERSโ€‹

-DataBaseโ€‹

Specify a ComObject representing an MSI database opened in view/modify/update mode.

Type: __ComObject
Parameter Sets: (All)
Aliases:

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

-PropertyNameโ€‹

The name of the property to be set/modified.

Type: String
Parameter Sets: (All)
Aliases:

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

-PropertyValueโ€‹

The value of the property to be set/modified.

Type: String
Parameter Sets: (All)
Aliases:

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

-ContinueOnErrorโ€‹

Continue if an error is encountered. Default is: $true.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: True
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โ€‹

Noneโ€‹

You cannot pipe objects to this function.โ€‹

OUTPUTSโ€‹

Noneโ€‹

This function does not generate any output.โ€‹

NOTESโ€‹

This is an internal script function and should typically not be called directly.

https://psappdeploytoolkit.com