MSMQ - Set permissions
Declaration
<AMMSMQ ACTIVITY="set_permissions" REMOTEMACHINE="text" QUEUE="text" ENABLECACHE="YES/NO" DENYSHAREDMODERECEIVE="YES/NO" ACCESSMODE="" USER="text" ACCESSCONTROLTYPE="text (options)" />
Description
Adds permissions to the current set. This controls who has access rights to queue properties and messages in the queue.
IMPORTANT: MSMQ must be installed on the (local or
remote) computer in order for these activities to function properly.
MSMQ is bundled with most Microsoft Windows operating systems, however, it is not installed by default.
For more details regarding the installation of MSMQ, see MSMQ
Installation & Overview.
Practical usage
See Description.
Parameters
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Local computer | --- | --- | --- | --- | If
enabled, specifies that this activity will be performed on the
local computer (enabled by default). NOTE: This parameter does not contain markup and is only displayed in visual mode for task construction and configuration purposes. |
Another computer | Text | No | (Empty) |
|
If enabled, specifies the hostname or IP address of the remote computer that this activity will be performed on. When this parameter is enabled, the Local computer parameter is ignored. |
Queue path | Text | Yes | (Empty) | QUEUENAME="HostName\QueueName" | The
name of the message queue to gather messages from. The queue name
consists of the computer name, an optional PRIVATE$ keyword that
indicates whether it is a private queue and the name of the queue.
|
Example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Description
This sample task gives a group full control of a queue.
Copy
<AMMSMQ ACTIVITY="set_permissions" QUEUE="vmwinvx64\Private$\myPrivateQueue" USER="Automation" />