< Back

Install-CMsmqMessageQueue

Sun Jan 12, 2020 10:18 pm

NAME Install-CMsmqMessageQueue



SYNOPSIS

Installs an MSMQ queue.





SYNTAX

Install-CMsmqMessageQueue [-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 <String>

The name of the queue.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Private [<SwitchParameter>]

Makes a private queue.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Transactional [<SwitchParameter>]

Makes a transactional queue.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

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



OUTPUTS



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



PS C:\\>Install-CMsmqMessageQueue -Name MovieQueue



Installs a public, non-transactional `MovieQueue`.









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



PS C:\\>Install-CMsmqMessageQueue -Name CriticsQueue -Private -Transactional



Installs a private, transactional `CriticsQueue` queue.











RELATED LINKS