PowerShell Logo Small

Get-MaskingSet



This is the built-in help made by Microsoft for the command 'Get-MaskingSet', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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

Gets masking sets. Masking sets are used to grant access to a virtual disk or iSCSI VHD for one or more servers.

SYNTAX


Get-MaskingSet [[-FriendlyName] <String[]>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-HostType <HostType[]>] [-ThrottleLimit
<Int32>] [<CommonParameters>]
Get-MaskingSet [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-InitiatorId <CimInstance>] [-ThrottleLimit <Int32>]
[<CommonParameters>]
Get-MaskingSet [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-TargetPort <CimInstance>] [-ThrottleLimit <Int32>]
[<CommonParameters>]
Get-MaskingSet [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-UniqueId <String[]>] [<CommonParameters>]
Get-MaskingSet [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-StorageSubSystem <CimInstance>] [-ThrottleLimit <Int32>]
[<CommonParameters>]
Get-MaskingSet [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-VirtualDisk <CimInstance>]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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.



<

RELATED LINKS

Get-InitiatorPort
Get-TargetPort
New-MaskingSet
Remove-MaskingSet
Rename-MaskingSet
Get-VirtualDisk

REMARKS

<

Examples


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.