Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » New-PSDrive

New-PSDrive - Powershell 1.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 »

New-PSDrive

Description
Install a new drive on the machine

Usage


Options


Example(s)
Install a drive called 'SS64' using the file system provider. The drive will be rooted at "C:\MyDocs":

PS C:\>new-Psdrive -name SS64 -psProvider FileSystem -root C:\MyDocs
DIR SS64:

Install a drive called 'S:' using the file system provider. The drive will be rooted at "C:\MyDocs":

PS C:\>new-Psdrive -name S -PsProvider FileSystem -root C:\MyDocs
S:
PS S:\>DIR S:

The parameters are positional, so
PS C:\>New-PSDrive -name M -psprovider FileSystem -root \\Server\Share

is the same as
PS C:\>New-PSDrive M FileSystem \\Server\Share