-
Notifications
You must be signed in to change notification settings - Fork 0
/
Grant-MSMQMessageQueuePermission.html.orig
127 lines (108 loc) · 4.45 KB
/
Grant-MSMQMessageQueuePermission.html.orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>PowerShell - Grant-MsmqMessageQueuePermission - Carbon</title>
<link href="silk.css" type="text/css" rel="stylesheet" />
<link href="styles.css" type="text/css" rel="stylesheet" />
</head>
<body>
<ul id="SiteNav">
<li><a href="index.html">Get-Carbon</a></li>
<li><a href="about_Carbon_Installation.html">-Install</a></li>
<li><a href="documentation.html">-Documentation</a></li>
<li><a href="about_Carbon_Support.html">-Support</a></li>
<li><a href="releasenotes.html">-ReleaseNotes</a></li>
<li><a href="http://pshdo.com">-Blog</a></li>
</ul>
<h1>Grant-MsmqMessageQueuePermission</h1>
<div><p>Grants a user permissions on an MSMQ message queue.</p></div>
<h2>Syntax</h2>
<pre class="Syntax"><code>Grant-MsmqMessageQueuePermission [-Name] <String> [-Private] [-Username] <String> [-AccessRights] <MessageQueueAccessRights[]> [-WhatIf] [-Confirm] [<CommonParameters>]</code></pre>
<h2>Description</h2>
<div class="Description">
<p>If you want users to be able to access your queue, you need to grant them access. This function will do that.</p>
<p>The rights you can assign are specified using values from the <a href="http://msdn.microsoft.com/en-us/library/system.messaging.messagequeueaccessrights.aspx">MessageQueueAccessRights enumeration</a>. </p>
<p>If your queue is private, make sure you set the <code>Private</code> switch.</p>
</div>
<h2>Related Commands</h2>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/system.messaging.messagequeueaccessrights.aspx">http://msdn.microsoft.com/en-us/library/system.messaging.messagequeueaccessrights.aspx</a></li>
</ul>
<h2> Parameters </h2>
<table id="Parameters">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Required?</th>
<th>Pipeline Input</th>
<th>Default Value</th>
</tr>
<tr valign='top'>
<td>Name</td>
<td><a href="http://msdn.microsoft.com/en-us/library/system.string.aspx">String</a></td>
<td class="ParamDescription"><p>The queue name.</p></td>
<td>true</td>
<td>false</td>
<td></td>
</tr>
<tr valign='top'>
<td>Private</td>
<td><a href="http://msdn.microsoft.com/en-us/library/system.management.automation.switchparameter.aspx">SwitchParameter</a></td>
<td class="ParamDescription"><p>Is the queue private?</p></td>
<td>false</td>
<td>false</td>
<td>False</td>
</tr>
<tr valign='top'>
<td>Username</td>
<td><a href="http://msdn.microsoft.com/en-us/library/system.string.aspx">String</a></td>
<td class="ParamDescription"><p>The user to grant permissions to.</p></td>
<td>true</td>
<td>false</td>
<td></td>
</tr>
<tr valign='top'>
<td>AccessRights</td>
<td>MessageQueueAccessRights[]</td>
<td class="ParamDescription"><p>The rights to grant the user.</p></td>
<td>true</td>
<td>false</td>
<td></td>
</tr>
<tr valign='top'>
<td>WhatIf</td>
<td><a href="http://msdn.microsoft.com/en-us/library/system.management.automation.switchparameter.aspx">SwitchParameter</a></td>
<td class="ParamDescription"></td>
<td>false</td>
<td>false</td>
<td></td>
</tr>
<tr valign='top'>
<td>Confirm</td>
<td><a href="http://msdn.microsoft.com/en-us/library/system.management.automation.switchparameter.aspx">SwitchParameter</a></td>
<td class="ParamDescription"></td>
<td>false</td>
<td>false</td>
<td></td>
</tr>
<tr valign="top">
<td><a href="http://technet.microsoft.com/en-us/library/dd315352.aspx">CommonParameters</a></td>
<td></td>
<td>This cmdlet supports common parameters. For more information type <br> <code>Get-Help about_CommonParameters</code>.</td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<h2>EXAMPLE 1</h2>
<pre><code>Grant-MsmqMessageQueuePermission -Name MovieQueue -Username REGAL\Employees -AccessRights FullControl</code></pre>
<p>Grants Regal Cinema employees full control over the MovieQueue.</p>
<h2>EXAMPLE 2</h2>
<pre><code>Grant-MsmqMessageQueuePermission -Name MovieQueue -Private -Username REGAL\Critics -AccessRights WriteMessage</code></pre>
<p>Grants all of Regal's approved movie critics permission to write to the private critic's <code>MovieQueue</code>. Lucky!</p>
<div class="Footer">
Copyright 2012 - 2016 <a href="http://pshdo.com">Aaron Jensen</a>.
</div>
</body>
</html>