Thread: network drives
View Single Post
Old 04-26-2007   #3 (permalink)
Don Jones


 
 

Re: network drives

get-psdrive | select name,root

That'll list everything mapped in PowerShell, show you the name of the drive
(which in PSH is the same as the "letter") and the root of the drive - where
the drive is mapped to. Now, that'll show local drives, too... is that okay?

If you're looking for network drives which are just mapped in WINDOWS...
that's a bit different. Not sure what you're looking for though...

--
Don Jones
Windows PowerShell MVP
Founder: www.ScriptingAnswers.com
Co-Author: "Windows PowerShell: TFM"

<Nicopil@mi> wrote in message news:46311518$0$1161$426a34cc@news.free.fr...
> Hi there, i'm trying to list all network drives mapped on a computer on
> powershell, by writing their letter, names, and paths (ie :
> \\xxxx\xxxx\xxxx)
>
> how could i do it ?
>
> thx
> Nico
>


My System SpecsSystem Spec