< Back

Get-DriveStatus

Tue Jan 14, 2020 1:09 am

NAME Get-DriveStatus



SYNOPSIS

Gets drive letters and their visibility status to Windows Explorer.





SYNTAX

Get-DriveStatus [[-DriveLetter] <String[]>] [<CommonParameters>]





DESCRIPTION

Windows explorer has the ability to hide drives from the user. This cmdlet returns drive letters and their

visibility status.





PARAMETERS

-DriveLetter <String[]>

Drive letter to display. If drive letter not present, all drives returned.



Required? false

Position? 0

Default value None

Accept pipeline input? True (ByValue)

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

System.String[]







OUTPUTS

System.Object







NOTES









Example 1



PS C:\\> Get-DriveStatus



DriveLetter IsHidden

----------- --------

A False

B False

C False

D False

E False

F False

...



Returns the hidden status of all the drives.

Example 2



PS C:\\> Get-DriveStatus -DriveLetter C



DriveLetter IsHidden

----------- --------

C False



Returns the hidden status of the C drive.



RELATED LINKS

Github https://github.com/dchristian3188/HideW ... orerDrives