User Login

Help Community Login:

View All Shared Folders on my Computer as a List? - [SOLVED]

1 reply [Last post]
M3bimmer's picture
Relationship Status:
Joined: 06/05/2011
Posts: 2
Drops: 6
Mood: Awake

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
STaRDoGG's picture
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Single & Not Looking
Joined: 01/14/2009
Posts: 2611
Drops: 3094
Mood: Energetic
Re: View All Shared Folders on my Computer as a List? - ...

Super easy and you don't even need to download any extra software (unless you want to).

  • Just press the Windows Key + R, type in PowerShell, and press Enter.
  • Type in (or copy and paste from here) Get-SmbShare.
  • You'll get a list of all shared folders on your computer.

If you plan to do that somewhat often and don't want to remember to do 'all of that', you can save it to a .ps1 file, so you can just run PowerShell and call the script.

For example:

  • Save that command to a file named something like "List Shared Folders.ps1".
  • Run PowerShell as described above, navigate to the folder the .ps1 script is in, say, your Desktop for example. (TIP: 'CD' (c)hanges (d)irectory; type 'CD Desktop').
  • Type the first couple of letters of the script and hit TAB to auto-complete the file name plus add the special "&" command to run it. It'll look like this: & '.\List Shared Folders.ps1'.
  • Hit Enter

You can also drag & drop the .ps1 file onto the PowerShell window and it'll fill in the full path to the script, saving you from having to manually type out all the "CD" stuff. Then just add the "&" sign to the beginning tun run it.

NOTE: Some might want to associate the .ps1 file extension with PowerShell so they can just double-click the script whenever you want to run it, but Microsoft deliberately chose to open those with notepad as a security precaution. That way you don't accidentally run a malicious script, or even accidentally run a script that makes some serious system changes. so, it's recommended not to do that.

TIP: The Get-SmbShare command also has some extra parameters that you can add to it, for more specific details, if you're interested. Here's the reference: Get-SmbShare Documentation

Finally, if you'd prefer to just run a small Windows program to list all of your shared folders, there's a free program you can download from Sysinternals (a Microsoft company) called "ShareEnum" available here. Once in a while it craps out on me though, so I prefer good ol PowerShell.

Thumbs Up

Shhh.. dont tell anyone, but we also have a private forum area with the really good stuff, see?

Who's New

KubaBoi's picture
Anonymous_Hacker's picture
rogerwinhye's picture
nemesis3290's picture
chap2315's picture
Pancake's picture
Stephenhaw909's picture
travis's picture
hawkeyefxr's picture
Michaelchung2002.'s picture
Norielm19's picture
vankemp68's picture
ajfan91's picture
Circuit VPN's picture
itsjusme's picture
facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop™ 2009-2022
TOS | Privacy Policy