Get-SCPortACLRule

Gets a port ACL rule.

Syntax

Get-SCPortACLRule
   [-VMMServer <ServerConnection>]
   [-Name <String>]
   [-OnBehalfOfUser <String>]
   [-OnBehalfOfUserRole <UserRole>]
   [<CommonParameters>]
Get-SCPortACLRule
   [-VMMServer <ServerConnection>]
   [-Name <String>]
   [-ID <Guid>]
   [-OnBehalfOfUser <String>]
   [-OnBehalfOfUserRole <UserRole>]
   [<CommonParameters>]
Get-SCPortACLRule
   [-VMMServer <ServerConnection>]
   [-Name <String>]
   [-PortACL <PortACL>]
   [-OnBehalfOfUser <String>]
   [-OnBehalfOfUserRole <UserRole>]
   [<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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the ACL rule.

Type:String
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
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PortACL

Specifies a port ACL object.

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

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False