Windows 7 Shares – How to connect to Windows 7 shares (SMB) using the command line – The Visual Guide
There are many hidden shares on any windows pc. This is how to locate them, and connect.
Step 1 – Locate shares
Here we find several “hidden” shares, with the $ sign at the end.
Next, we check the rights for each share.
Step 2 – Snoop on the rights of each hidden share
net share e$
Step 3 – Connect to the share
net use \\Server\e$
Step 4 – Limit the number of users to a share
net share e$ /users:2
Step 5 – Delete the share where not critical
net share e$ /delete
net share users /delete
net share sharename \\remotepc /delete
Step 6 – Create a new share
net share sharename=e:\ /grant:everyone, full
net share Boo
Boo has given everyone READ permissions, whereas “sharename” gave FULL permissions.
net share E$=e:\ /grant:everyone,FULL
1. They use IPC or interprocess communication
2. This is based on SMB or Server Message Blocks
3. IPC$ uses RPC or Remote Protocol Communication.
4. To connect we use net use, the ip or host name of the pc, a blank password and username
net use \\10.10.10.10\ipc$ “” “/user:”
net view \\10.10.10.10
5. Block NETBIOS on your windows by blocking
port 139 (NETBIOS Sessions Service)
port 445 (SMB over TCP/IP without NETBIOS)
Disable file and printer sharing for Microsoft Networks
Restrict anonymous connections using the registry.
Setting 0 : Default will be NONE. Rely on DEFAULT settings.
Setting 1 : Do Not Allow Enumeration of SAM Accounts and shares. Allows nulls to be mapped to IPC$.
Setting 2 : No Access without Explicit Anonymous Permission