Install-MsmqMessageQueue

Installs an MSMQ queue.

Syntax

Install-MsmqMessageQueue [-Name] <String> [-Private] [-Transactional] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Creates a new queue with name Name. If a queue with that name already exists, it is deleted, and a new queue is created.

If the queue needs to be private, pass the Private switch. If it needs to be transactional, set the Transactional switch.

Parameters

Name Type Description Required? Pipeline Input Default Value
Name String

The name of the queue.

true false
Private SwitchParameter

Makes a private queue.

false false False
Transactional SwitchParameter

Makes a transactional queue.

false false False
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Install-MsmqMessageQueue -Name MovieQueue

Installs a public, non-transactional MovieQueue.

EXAMPLE 2

Install-MsmqMessageQueue -Name CriticsQueue -Private -Transactional

Installs a private, transactional CriticsQueue queue.