Install-WindowsFeatureMsmq

Installs MSMQ and, optionally, some of its sub-features, if they aren't already installed.

Syntax

Install-WindowsFeatureMsmq [-HttpSupport] [-ActiveDirectoryIntegration] [<CommonParameters>]

Description

This function installs MSMQ and, optionally, MSMQ's HTTP support and Active Directory integration. If any of the selected features are already installed, they are not re-installed; nothing happens.

NOTE: This function is only available on operating systems that have servermanagercmd.exe or ocsetup.exe and WMI support for the Win32_OptionalFeature class.

Parameters

Name Type Description Required? Pipeline Input Default Value
HttpSupport SwitchParameter Enable HTTP Support false false
ActiveDirectoryIntegration SwitchParameter Enable Active Directory Integrations false false

EXAMPLE 1

Install-WindowsFeatureMsmq

Installs MSMQ, if it isn't already installed.

EXAMPLE 2

Install-WindowsFeatureMsmq -HttpSupport -ActiveDirectoryIntegration

Installs MSMQ and its HTTP support and Active Directory integration features, if they aren't already installed.