Set-MsmqQueueManager
Set-MsmqQueueManager
Configures the properties of the specified queue manager.
Syntax
Parameter Set: All
Set-MsmqQueueManager [-JournalQuota <UInt64> ] [-LogMsgStore <String> ] [-MessageQuota <UInt64> ] [-MsgStore <String> ] [-RenewEncryptionKey] [-TransactionLogStore <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: Connect
Set-MsmqQueueManager [-Connect] [-JournalQuota <UInt64> ] [-LogMsgStore <String> ] [-MessageQuota <UInt64> ] [-MsgStore <String> ] [-RenewEncryptionKey] [-TransactionLogStore <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: Disconnect
Set-MsmqQueueManager [-Disconnect] [-JournalQuota <UInt64> ] [-LogMsgStore <String> ] [-MessageQuota <UInt64> ] [-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 |
|
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 |
|
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-JournalQuota<UInt64>
If specified, sets the total Journal Message Storage quota for MSMQ.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
|
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-LogMsgStore<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 |
|
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-MessageQuota<UInt64>
If specified, sets the total Message Storage quota for MSMQ.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
|
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 |
|
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-RenewEncryptionKey
If specified, renews the public encryption key.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
|
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 |
none |
Required? |
false |
Position? |
named |
Default Value |
|
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
|
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
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, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Examples
Usage Scenario
Set-MsmqQueueManager –MessageQuota 2048576 –MsgStoreLocation “c:\MSMQ\MessageFiles” –TransactionLogStore “c:\MSMQ\XactLogs”