Hi everyone. Is there a way to see ALL folders that I have shared on my computer? I'm afraid I might have some shared folders that I'm unaware of that might expose personal information. Financial info and stuff like that.
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.
Shhh.. dont tell anyone, but we also have a private forum area with the really good stuff,see?
Olympus
Single & Not Looking
Super easy and you don't even need to download any extra software (unless you want to).
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:
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.