Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Get-PSDrive

Get-PSDrive - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-PSDrive

Short description
Gets the Windows PowerShell drives in the current session.

Syntax


Description
The Get-PSDrive cmdlet gets the Windows PowerShell drives in the current session. You can get a particular drive or
 all drives in the console.

Get-PSDrive gets the following drives:

-- Windows logical drives on the computer, including drives mapped to network shares. 

-- Drives exposed by Windows PowerShell providers (such as the Certificate:, Function:, and Alias: drives) and the 
HKLM: and HKCU: drives that are exposed by the Windows PowerShell Registry provider. 

-- Drives that you create by using New-PSDrive.

Get-PSDrive does not get Windows mapped drives that are added or created after the Windows PowerShell console is op
ened.