Set-Msmq
Queue
Manager
Syntax
Set-MsmqQueueManager
[-RenewEncryptionKey]
[-MsgStore <String>]
[-MsgLogStore <String>]
[-TransactionLogStore <String>]
[-MessageQuota <Int64>]
[-JournalQuota <Int64>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-MsmqQueueManager
[-Connect]
[-RenewEncryptionKey]
[-MsgStore <String>]
[-MsgLogStore <String>]
[-TransactionLogStore <String>]
[-MessageQuota <Int64>]
[-JournalQuota <Int64>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-MsmqQueueManager
[-Disconnect]
[-RenewEncryptionKey]
[-MsgStore <String>]
[-MsgLogStore <String>]
[-TransactionLogStore <String>]
[-MessageQuota <Int64>]
[-JournalQuota <Int64>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Set-MsmqQueueManager cmdlet configures the properties of the Message Queuing (also known as MSMQ) queue manager. This cmdlet returns a QueueManager object that represents the modified local queue manager. If you specify the RenewEncryptionKey parameter to renew keys, you must restart the Message Queuing service for the new keys to become effective.
Examples
Example 1: Configure the queue manager
PS C:\> Set-MsmqQueueManager -MessageQuota 2048576 -MsgStore "C:\MSMQ\MessageFiles" -TransactionLogStore "C:\MSMQ\TransactionLogs"
This command configures properties of the Message Queuing queue manager.
Optional Parameters
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Indicates that this cmdlet connects the computer to the network and to the directory service. If you specify this parameter, you cannot specify the Disconnect parameter.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Indicates that this cmdlet disconnects the computer from the network and from the directory service. If you specify this parameter, you cannot specify the Connect parameter.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the total Journal Message Storage quota for Message Queuing.
Type: | Int64 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the total Message Storage quota for Message Queuing.
Type: | Int64 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
{{Fill MsgLogStore Description}}
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies a new message storage location. The cmdlet moves all the message files to the new location.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Indicates that this cmdlet renews the public encryption key.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies a new transaction logger storage location. This cmdlet moves all the transaction logger files to the new location.
Type: | String |
Aliases: | XactLogStore |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |