Get-SCPortACLRule

Gets a port ACL rule.

Syntax

Get-SCPortACLRule [-ID <Guid>] [-Name <String>] [-OnBehalfOfUser <String>] [-OnBehalfOfUserRole <UserRole>]
 [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCPortACLRule [-Name <String>] [-OnBehalfOfUser <String>] [-OnBehalfOfUserRole <UserRole>]
 [-PortACL <PortACL>] [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Get-SCPortACLRule cmdlet gets a port access control list (ACL) rule in Virtual Machine Manager (VMM).

Examples

Example 1: Get a port ACL rule

PS C:\> Get-SCPortACLRule -Name "AllowRDPAccess"

The command gets the port ACL rule named AllowRDPAccess.

Example 2: Get port ACL rules from an ACL

PS C:\> $PortACL = Get-SCPortACL -Name "RDP ACL"
PS C:\> Get-SCPortACLRule -PortACL $PortACL"

The first command gets the port ACL named RDP ACL, and then stores it in the $PortACL variable.

The second command gets all the rules under the port ACL in $PortACL.

Parameters

-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the ACL rule.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OnBehalfOfUser

Specifies a user name. This cmdlet operates on behalf of the user that this parameter specifies.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OnBehalfOfUserRole

Specifies a user role. To obtain a user role, use the Get-SCUserRole cmdlet. This cmdlet operates on behalf of the user role that this parameter specifies.

Type:UserRole
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PortACL

Specifies a port ACL object.

Type:PortACL
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False