This is the built-in help made by Microsoft for the command 'Get-MaskingSet', 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.
Gets masking sets. Masking sets are used to grant access to a virtual disk or iSCSI VHD for one or more servers.
Get-MaskingSet [[-FriendlyName] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-HostType <HostType[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-MaskingSet [-AsJob] [-CimSession <CimSession[]>] [-InitiatorId <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-MaskingSet [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-VirtualDisk <CimInstance>] [<CommonParameters>]
Get-MaskingSet [-AsJob] [-CimSession <CimSession[]>] [-StorageSubSystem <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-MaskingSet [-AsJob] [-CimSession <CimSession[]>] [-TargetPort <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-MaskingSet [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-UniqueId <String[]>] [<CommonParameters>]
The Get-MaskingSet cmdlet returns a list of created masking sets. Masking sets are used to grant access to a virtual disk or iSCSI VHD for one or more servers.
This cmdlet is not needed when using the Storage Spaces subsystem.
<
Online Version: http://go.microsoft.com/fwlink/?LinkID=294437
Get-InitiatorPort
Get-TargetPort
New-MaskingSet
Remove-MaskingSet
Rename-MaskingSet
Get-VirtualDisk
<
Example 1: Get all masking sets
PS C:\> Get-MaskingSet
This example gets and displays all existing MaskingSet objects which have been created using any available Storage Management Providers across all visible storage subsystems.
Example 2: Get all Microsoft Windows masking sets
PS C:\> Get-MaskingSet -HostType MicrosoftWindows
This example gets and displays all masking sets hosted by a computer running Microsoft Windows.
Example 3: Get the masking set for a specific virtual disk
PS C:\> Get-MaskingSet -VirtualDisk (Get-VirtualDisk -FriendlyName CompanyData)
This example gets the masking set for the CompanyData virtual disk. It does so by using the Get-VirtualDisk cmdlet to get the appropriate VirtualDisk object and provide it
to the VirtualDisk parameter of Get-MaskingSet.