Set-MsmqQueueManager

Set-MsmqQueueManager

Configures the properties of the specified queue manager.

Syntax

Parameter Set: All
Set-MsmqQueueManager [-JournalQuota <Int64> ] [-MessageQuota <Int64> ] [-MsgLogStore <String> ] [-MsgStore <String> ] [-RenewEncryptionKey] [-TransactionLogStore <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Connect
Set-MsmqQueueManager [-Connect] [-JournalQuota <Int64> ] [-MessageQuota <Int64> ] [-MsgLogStore <String> ] [-MsgStore <String> ] [-RenewEncryptionKey] [-TransactionLogStore <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Disconnect
Set-MsmqQueueManager [-Disconnect] [-JournalQuota <Int64> ] [-MessageQuota <Int64> ] [-MsgLogStore <String> ] [-MsgStore <String> ] [-RenewEncryptionKey] [-TransactionLogStore <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Set-MsmqQueueManager cmdlet is used to configure the properties of the specified MSMQ queue manager. After renewing the encryption keys via the parameter –RenewEncryptionKey, the user must restart the MSMQ service for the new keys to become effective. This cmdlet returns a QueueManager object that represents the modified local queue manager.

Parameters

-Connect

If specified, connects the computer to the network and to the directory service. Cannot be specified if –Disconnect is specified.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Disconnect

If specified, disconnects the computer from the network and from the directory service. Cannot be specified if –Connect is specified.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JournalQuota<Int64>

If specified, sets the total Journal Message Storage quota for MSMQ.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-MessageQuota<Int64>

If specified, sets the total Message Storage quota for MSMQ.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-MsgLogStore<String>

If specified, changes the message logger storage location and moves over all the message logger files to the new location.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-MsgStore<String>

If specified, changes the message storage location and moves over all the message files to the new location.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RenewEncryptionKey

If specified, renews the public encryption key.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-TransactionLogStore<String>

If specified, changes the transaction logger storage location and moves over all the transaction logger files to the new location. Alias: XactLogStore

Aliases

XactLogStore

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

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, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Usage Example

PS C:\> Set-MsmqQueueManager –MessageQuota 2048576 –MsgStoreLocation "c:\MSMQ\MessageFiles" –TransactionLogStore "c:\MSMQ\XactLogs"