< Back

Install-MSIAdvertisedFeature

Sat Jan 18, 2020 4:45 pm

NAME Install-MSIAdvertisedFeature



SYNOPSIS

Installs advertised features.





SYNTAX

Install-MSIAdvertisedFeature [[-FeatureName] <String[]>] [-Confirm] [-Force] -Product <ProductInstallation[]>

[-Properties <String[]>] [-WhatIf] [<CommonParameters>]



Install-MSIAdvertisedFeature [[-FeatureName] <String[]>] [-Confirm] [-Force] [-ProductCode <String[]>]

[-Properties <String[]>] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Some or all features can be advertised for a product. This may be by design or incidental if certain patching

problems occur. You can use this cmdlet to to install some or all advertise features for some or all products.



You can also scan for all advertised features using the -WhatIf parameter to see what would be done to your system

without performing those operations. Use -Confirm if you want to approve the operation to each product.





PARAMETERS

-Confirm [<SwitchParameter>]

Confirm installing advertised features for each product.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-FeatureName <String[]>

One or more specific features to install. Feature names are case-sensitive.



Required? false

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Force [<SwitchParameter>]

Perform each operation without confirmation.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Product <ProductInstallation[]>

One or more products passed through the pipeline to limit which products are scanned for advertised features.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-ProductCode <String[]>

One or more ProductCodes to limit which products are scanned for advertised features.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Properties <String[]>

Additional properties to pass to the installation operation.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Show what operations would be performed without actually performing them.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Deployment.WindowsInstaller.ProductInstallation







OUTPUTS



NOTES









-------------------------- EXAMPLE 1 --------------------------



install-msiadvertisedfeature -whatif



Scans all features in all products for advertised features and reports what operation would be performed.

-------------------------- EXAMPLE 2 --------------------------



get-msiproductinfo '{12341234-1234-1234-1234-123412341234}' | install-msiadvertisedfeature Complete



Installs the 'Complete' feature for the specified product.



RELATED LINKS

Get-MSIProductInfo

Install-MSIProduct