You are here:

WindowsManagement.com > PowerShell > PowerShell 1.0 > Get-PSDrive
ActiveXperts Network Monitor 2019 proactively manages network servers, devices, databases and more.

Get-PSDrive - PowerShell 1.0

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.

Get-PSDrive


Description
Back up your Hyper-V VMs Easy & Fast. 100% built for Hyper-V. Free for 2 VMs, forever.

Usage


Options
-name string
        The PowerShell drive name(s), separate multiple names with commas.

   -literalName string
        The Drive name which will be used exactly as typed.
        No characters are interpreted as wildcards. If the name includes escape
        characters, enclose it in single quotation marks.

   -pSProvider 
        Return the PSDriveInfo object for all of the drives exposed by
        the specified provider(s).
        
   -scope 
        The scope within which to search for the drive.

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

Example(s)
Display information about all currently visible drives:

PS C:\>get-psdrive

Display information for drives with names that begin with HK (registry: HKLM, HKCU etc):

PS C:\>get-psdrive HK*