This is the built-in help made by Microsoft for the command 'Hide-VirtualDisk', in PowerShell version 4 - as retrieved from
Windows version 'Microsoft Windows 8.1 Enterprise' 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.
Hides the virtual disk from the host when the Storage Management Provider in use does not support masking sets.
Hide-VirtualDisk [-FriendlyName] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-InitiatorAddress <String>] [-PassThru] [-TargetPortAddresses <String[]>] [-Throttl
eLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Hide-VirtualDisk [-AsJob] [-CimSession <CimSession[]>] [-InitiatorAddress <String>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit <Int32>] -UniqueId <
String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Hide-VirtualDisk [-AsJob] [-CimSession <CimSession[]>] [-InitiatorAddress <String>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit <Int32>] -InputObjec
t <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Hide-VirtualDisk [-AsJob] [-CimSession <CimSession[]>] [-InitiatorAddress <String>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit <Int32>] -Name <Stri
ng[]> [-Confirm] [-WhatIf] [<CommonParameters>]
The Hide-VirtualDisk cmdlet hides the virtual disk from the host when the Storage Management Provider in use does not support masking sets. This is equivalent to mask
ing.
<
Online Version: http://go.microsoft.com/fwlink/?LinkID=307000
Connect-VirtualDisk
Disconnect-VirtualDisk
Get-InitiatorPort
Get-TargetPort
Get-VirtualDisk
New-VirtualDisk
Remove-VirtualDisk
Repair-VirtualDisk
Resize-VirtualDisk
Set-VirtualDisk
Show-VirtualDisk
<
EXAMPLE 1
PS C:\> $iniport = (Get-InitiatorPort)
PS C:\> $tarport = (Get-TargetPort)
PS C:\> Hide-VirtualDisk -FriendlyName "SQLData_27a" -TargetPortAddresses $tarport.NodeAddress -InitiatorAddress $iniport.NodeAddress
This example displays hides the virtual disk when the storage provider does not support masking sets. This cmdlet can be used either locally or remotely, to hide or d
eny access.