-
Notifications
You must be signed in to change notification settings - Fork 0
/
Get-ServicePermission.html
94 lines (78 loc) · 2.89 KB
/
Get-ServicePermission.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>PowerShell - Get-ServicePermission - 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>
<li><a href="https://github.com/webmd-health-services/Carbon/">-Project</a></li>
</ul>
<h1>Get-ServicePermission</h1>
<div class="Synopsis">
<p>Gets the permissions for a service.</p>
</div>
<h2>Syntax</h2>
<pre class="Syntax"><code>Get-ServicePermission [-Name] <String> [[-Identity] <String>] [<CommonParameters>]</code></pre>
<h2>Description</h2>
<div class="Description">
<p>Uses the Win32 advapi32 API to query the permissions for a service. Returns <code>Carbon.ServiceAccessRule</code> objects for each. The two relavant properties on this object are</p>
<ul>
<li>IdentityReference - The identity of the permission.</li>
<li>ServiceAccessRights - The permissions the user has.</li>
</ul>
</div>
<h2>Related Commands</h2>
<ul class="RelatedCommands">
<li>Grant-ServicePermissions</li>
<li>Revoke-ServicePermissions</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 name of the service whose permissions to return.</p></td>
<td>true</td>
<td>false</td>
<td></td>
</tr>
<tr valign='top'>
<td>Identity</td>
<td><a href="http://msdn.microsoft.com/en-us/library/system.string.aspx">String</a></td>
<td class="ParamDescription"><p>The specific identity whose permissions to get.</p></td>
<td>false</td>
<td>false</td>
<td></td>
</tr>
</table>
<h2>Return Values</h2>
<div class="ReturnValues">
<p>Carbon.Security.ServiceAccessRule. </p>
</div>
<h2>EXAMPLE 1</h2>
<pre><code>Get-ServicePermission -Name 'Hyperdrive'</code></pre>
<p>Gets the access rules for the <code>Hyperdrive</code> service.</p>
<h2>EXAMPLE 2</h2>
<pre><code>Get-ServicePermission -Name 'Hyperdrive' -Identity FALCON\HSolo</code></pre>
<p>Gets just Han's permissions to control the <code>Hyperdrive</code> service.</p>
<div class="Footer">
Copyright 2012 - 2018 <a href="http://pshdo.com">Aaron Jensen</a>.
</div>
</body>
</html>