Set-MsmqQueueACL
Set-MsmqQueueACL
Modifies the access rights of queues.
構文
Parameter Set: Default
Set-MsmqQueueACL [-InputObject] <MessageQueue[]> -UserName <String[]> [-Allow <MessageQueueAccessRights[]> ] [-Deny <MessageQueueAccessRights[]> ] [-Remove <MessageQueueAccessRights[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Set-MsmqQueueACL cmdlet modifies the access rights of queues. This cmdlet returns the updated MsmqQueueAcl object. The cmdlet modifies private, public, journal, system journal, system dead-letter, and system transactional dead-letter queues.
パラメーター
-Allow<MessageQueueAccessRights[]>
Specifies an array of permissions that this cmdlet grants to a user account or group. このパラメーターに対して使用できる値:
-- Delete. Delete the specified queue.
-- FullControl. Full control of the specified queue.
-- GetPermissions. Get the permissions of the specified queue.
-- GetProperties. Get the properties of the specified queue.
-- JournalReceive. Receive a message from the specified queue journal queue.
-- Peek. Peek a message from the specified queue.
-- Receive. Receive a message from the specified queue.
-- Send. Send a message to the specified queue.
-- SetPermissions. Set the permissions of the specified queue.
-- SetProperties. Set the properties of the specified queue.
-- SpecialPermissions. Special permissions for the specified queue.
-- TakeOwnership. Assign the specified queue to oneself.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Deny<MessageQueueAccessRights[]>
Specifies an array of permissions that the cmdlet revokes from a user account or group. このパラメーターに対して使用できる値:
-- Delete. Delete the specified queue.
-- FullControl. Full control of the specified queue.
-- GetPermissions. Get the permissions of the specified queue.
-- GetProperties. Get the properties of the specified queue.
-- JournalReceive. Receive a message from the specified queue journal queue.
-- Peek. Peek a message from the specified queue.
-- Receive. Receive a message from the specified queue.
-- Send. Send a message to the specified queue.
-- SetPermissions. Set the permissions of the specified queue.
-- SetProperties. Set the properties of the specified queue.
-- SpecialPermissions. Special permissions for the specified queue.
-- TakeOwnership. Assign the specified queue to oneself.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InputObject<MessageQueue[]>
Specifies an array of MsmqQueue objects. This cmdlet updates permissions for the queues that the MsmqQueue objects specify. This parameter accepts pipeline input.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Remove<MessageQueueAccessRights[]>
Specifies an array of permissions that this cmdlet removes from a user account or group. このパラメーターに対して使用できる値:
-- Delete. Delete the specified queue.
-- FullControl. Full control of the specified queue.
-- GetPermissions. Get the permissions of the specified queue.
-- GetProperties. Get the properties of the specified queue.
-- JournalReceive. Receive a message from the specified queue journal queue.
-- Peek. Peek a message from the specified queue.
-- Receive. Receive a message from the specified queue.
-- Send. Send a message to the specified queue.
-- SetPermissions. Set the permissions of the specified queue.
-- SetProperties. Set the properties of the specified queue.
-- SpecialPermissions. Special permissions for the specified queue.
-- TakeOwnership. Assign the specified queue to oneself.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UserName<String[]>
Specifies the user account or group whose permissions the cmdlet changes.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1
PS C:\> Get-MsmqQueue -Name "Order*" -QueueType Private | Set-MsmqQueueAcl -UserName "CONTOSO\DavidChew" -Allow Delete,Peek,Receive,Send -Deny TakeOwnership