PowerShell Logo Small

Remove-TargetPortFromMaskingSet



This is the built-in help made by Microsoft for the command 'Remove-TargetPortFromMaskingSet', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Removes a specified target port from a masking set.

SYNTAX


Remove-TargetPortFromMaskingSet [-MaskingSetFriendlyName] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit
<Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-TargetPortFromMaskingSet [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]>
[-Confirm] [-WhatIf] [<CommonParameters>]
Remove-TargetPortFromMaskingSet [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit <Int32>] -MaskingSetUniqueId <String[]>
[-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-TargetPortFromMaskingSet cmdlet removes a specified target port from a masking set.


This cmdlet is not needed when using the Storage Spagset-psv5.php">Get-MaskingSet

REMARKS

<

Examples


EXAMPLE 1

PS C:\> $masksfname = “MyFirstMaskingSet”
PS C:\> $targetpaddress = (Get-TargetPort).PortAddress
PS C:\> Remove-TargetPortFromMaskingSet -MaskingSetFriendlyName $masksfname -TargetPortAddresses $targetpaddress



This example removes a target port from a masking set. And prevents any of the VirtualDisk or InitiatorId objects defined in the masking set from utilizing the target port.