Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - network drives

Reply
 
Old 04-26-2007   #1 (permalink)
Guest


 
 

network drives

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
Old 04-26-2007   #2 (permalink)
Brandon Shell
Guest


 
 

Re: network drives

I think this is what your asking for...

$shares = Get-WMIobject Win32_Share -ComputerName Server1
$shares

<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
Old 04-26-2007   #3 (permalink)
Don Jones
Guest


 
 

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
Reply

Thread Tools


Similar Threads
Thread Forum
Cannot map network drives Virtual PC
Network Drives Network & Sharing
Network Drives Vista General
Missing drives (harddrive, cdrom and maaped network drives) Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46