List (and unshare) folders in Windows 7

After installing Windows 7, I was browsing around and found that they had removed the little "shared" icon overlay to let users know that a folder is being shared.

I found a way to list the shared folders and noticed that my computer was sharing a bunch of folders that I didn't want shared. Most importantly, ALL my personal and system files were exposed by default. WTF!?

You can disable them by running "Computer Management" through "compmgmt.msc" and selecting "Shared Folders" > "Shares".

There you can find a list of all shared folders in your computer.
Unfortunately, all your drives and system folders are shared by default because the "Server" service is an absolute cunt. Unsharing them will do nothing, because when the service is restarted, the disabled shares will appear again.

*update 8/6/2011* Thanks to xD for sharing a way to stop the drives and system folders (ADMIN$, C$, etc) from being shared!

Open up a command prompt with admin access and paste in:
reg ADD "HKLM\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters" /f /v AutoShareServer /t REG_DWORD /d "0"
reg ADD "HKLM\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters" /f /v AutoShareWks /t REG_DWORD /d "0"
Reboot to complete.
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog