TestimoX

API Reference

Command

Get-CxLogicalDisk

Namespace ComputerX.PowerShell
Inputs
System.String[]
Outputs
ComputerX.Storage.LogicalDiskInfo

Returns logical disk and volume information for one or more computers.

Examples

Authored help example

Example 1: Lists local logical disks and free space.

PS>


Get-CxLogicalDisk | Select-Object DeviceID,VolumeName,FileSystem,Size,FreeSpace
        

Example 2: Queries multiple file servers to review remaining space on fixed volumes.

PS>


Get-CxLogicalDisk -ComputerName FS01,FS02 | Where-Object DriveType -eq 'Fixed'
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-CxLogicalDisk [-ComputerName <string[]>] [<CommonParameters>]
#

Parameters

ComputerName string[] optionalposition: 0pipeline: true (ByValue, ByPropertyName)
Target computer names. Use . for the local machine or provide DNS/NetBIOS names. When omitted, the local computer is queried.

Outputs

ComputerX.Storage.LogicalDiskInfo