CleanCode logo
sitemap
SEARCH:

CleanCode PowerShell Libraries v1.2.08 API: CleanCode » FileTools » Get-UsbDriveInfo

Get-UsbDriveInfo

NAME

Get-UsbDriveInfo

SYNOPSIS

Convenience function for obtaining USB drive information.

SYNTAX

Get-UsbDriveInfo [<CommonParameters>]

DESCRIPTION

Returns ManagementObject objects that describe USB drives on the local system. This function is the base used by Get-UsbDriveLetter and Get-UsbDriveCapacity, which simply select properties of the returned objects.

PARAMETERS

<CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer and OutVariable. For more information, see 
        about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). 

INPUTS

None. You cannot pipe objects to Get-UsbDriveInfo.

OUTPUTS

Array of System.Management.ManagementObject#root\cimv2\Win32_LogicalDisk.

NOTES



        The OutputType attribute is specified as System.Management.ManagementObject[]
        though a more accurate type, returned by this...
             Get-UsbDriveInfo | Get-Member | Select -First 1 | % { $_.TypeName }
        ...is this:
             System.Management.ManagementObject#root\cimv2\Win32_LogicalDisk
        but I am not sure how to specify that in the OutputType.

        This function is part of the CleanCode toolbox
        from http://cleancode.sourceforge.net/.

        Since CleanCode 1.1.04.

RELATED LINKS

This documentation set was created with CleanCode's DocTreeGenerator.

Valid XHTML 1.0!Valid CSS!Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads
Copyright © 2001-2015 Michael Sorens • Contact usPrivacy Policy
Usage governed by Mozilla Public License 1.1 and CleanCode Courtesy License
CleanCode -- The Website for Clean DesignRevised 2015.12.16