< Back

Show-VirtualDisk

Wed Jan 30, 2019 6:04 pm

NAME Show-VirtualDisk



SYNOPSIS

Makes a virtual disk available to a host.





SYNTAX

Show-VirtualDisk [-FriendlyName] <String[]> [-CimSession <CimSession[]>] [-HostType {Unknown | Other | Standard | Solaris | HPUX | OpenVMS | Tru64 |

Netware | Sequent | AIX | DGUX | Dynix | Irix | CiscoISCSIStorageRouter | Linux | MicrosoftWindows | OS400 | TRESPASS | HIUX | VMwareESXi |

MicrosoftWindowsServer2008 | MicrosoftWindowsServer2003}] [-InitiatorAddress <String>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit

<Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]



Show-VirtualDisk [-CimSession <CimSession[]>] [-HostType {Unknown | Other | Standard | Solaris | HPUX | OpenVMS | Tru64 | Netware | Sequent | AIX | DGUX

| Dynix | Irix | CiscoISCSIStorageRouter | Linux | MicrosoftWindows | OS400 | TRESPASS | HIUX | VMwareESXi | MicrosoftWindowsServer2008 |

MicrosoftWindowsServer2003}] [-InitiatorAddress <String>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf]

[<CommonParameters>]



Show-VirtualDisk [-CimSession <CimSession[]>] [-HostType {Unknown | Other | Standard | Solaris | HPUX | OpenVMS | Tru64 | Netware | Sequent | AIX | DGUX

| Dynix | Irix | CiscoISCSIStorageRouter | Linux | MicrosoftWindows | OS400 | TRESPASS | HIUX | VMwareESXi | MicrosoftWindowsServer2008 |

MicrosoftWindowsServer2003}] [-InitiatorAddress <String>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit <Int32>] -Name <String[]>

[-Confirm] [-WhatIf] [<CommonParameters>]



Show-VirtualDisk [-CimSession <CimSession[]>] [-HostType {Unknown | Other | Standard | Solaris | HPUX | OpenVMS | Tru64 | Netware | Sequent | AIX | DGUX

| Dynix | Irix | CiscoISCSIStorageRouter | Linux | MicrosoftWindows | OS400 | TRESPASS | HIUX | VMwareESXi | MicrosoftWindowsServer2008 |

MicrosoftWindowsServer2003}] [-InitiatorAddress <String>] [-PassThru] [-TargetPortAddresses <String[]>] [-ThrottleLimit <Int32>] -UniqueId <String[]>

[-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Show-VirtualDisk cmdlet makes a virtual disk available to a host (by initiator and target ports). This cmdlet is equivalent to a VDS unmask

operation.





PARAMETERS

-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or

Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-FriendlyName <String[]>

Specifies the friendly name of the virtual disk to make available to the specified hosts.



Required? true

Position? 1

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-HostType [<HostType>]

Specifies the operating system of the host computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-InitiatorAddress [<String>]

Specifies the address for an initiator to which the virtual disk should be unmasked.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Name <String[]>

Specifies the name of the virtual disk to make available to the specified hosts.



Required? true

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Specifies that the cmdlet should output an object representing the virtual disk it unmasked. By default, this cmdlet does not generate any output.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-TargetPortAddresses [<String[]>]

Specifies one or more target port addresses to which the virtual disk should be unmasked.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is

entered, then Windows PowerShell???? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the

computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-UniqueId <String[]>

Specifies the UniqueID of the virtual disk to make available to the specified host.



Required? true

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk

http://msdn.microsoft.com/library/windo ... 30584.aspx





You can pipe an MSFT_VirtualDisk object to the InputObject parameter.





OUTPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk

http://msdn.microsoft.com/library/windo ... 30584.aspx





If you specify the PassThru parameter, this cmdlet outputs an object representing the virtual disk you made available to a host computer.





Example 1: Make a virtual disk available to the local computer



PS C:\\> $initaddress = (Get-InitiatorPort)

PS C:\\> $tarport = (Get-TargetPort)

PS C:\\> Show-VirtualDisk -FriendlyName "SQLData_27a" -TargetPortAddresses $tarport.NodeAddress -InitiatorAddress $initaddress.NodeAddress



This example makes the "SQLData_27a" virtual disk available to all initiators and target ports of the local computer.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816495

Connect-VirtualDisk

Disconnect-VirtualDisk

Get-InitiatorPort

Get-TargetPort

Get-VirtualDisk

Hide-VirtualDisk

New-VirtualDisk

Remove-VirtualDisk

Repair-VirtualDisk

Resize-VirtualDisk

Set-VirtualDisk