Skip to content

New-MSMQueue

SYNOPSIS

PSCX Cmdlet: Creates a new queue object with the defined properties

SYNTAX

Named (Default)

New-MSMQueue [-Force] [-Transactional] [-MachineName <String>] [[-Name] <String>] [-Private] [-WhatIf]
 [-Confirm] [<CommonParameters>]

Path

New-MSMQueue [-Force] [-Transactional] [-Path <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Queue

New-MSMQueue [-Force] [-Transactional] [-Queue <MessageQueueInfo>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Creates a new queue object with the defined properties

EXAMPLES

EXAMPLE 1

PS C:\>


PARAMETERS

-Name

@{Text=}

Type: System.String
Parameter Sets: Named
Aliases: QueueName, qn

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

-Force

Force the creation of the queue, even if a queue already exists with the given name

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

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

-MachineName

The name of the computer where the Message Queuing queue is located

Type: System.String
Parameter Sets: Named
Aliases: ComputerName

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

-Path

The queue's path

Type: System.String
Parameter Sets: Path
Aliases:

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

-Private

The visibility of the queue

Type: System.Management.Automation.SwitchParameter
Parameter Sets: Named
Aliases:

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

-Queue

MessageQueueInfo object holding the message queue information

Type: Pscx.Commands.Messaging.MessageQueueInfo
Parameter Sets: Queue
Aliases: QueueInfo

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Transactional

Create a transactional queue. If true, the queue will accept only messages sent as part of a transaction.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
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

OUTPUTS

NOTES

Back to top