Site Tools


windows:windows7:adminshare

Disable administrative shares

I wanted to copy things from PC1 to PC2. Lazy as always I didnt want to switch the monitorsource to create a share so I just connected via c$. PC2 didnt ask for any password and I was able to browse everything. This is why I disabled all admin shares now.

temp. disable the shares

“Win + R”, open “fsmgmt.msc”
Go to “Shares”, rightclick the unwanted shares and select “stop sharing”
All the shares will be back again after a reboot

fully disable the shares

“Win + R”, open “regedit”
Go to “HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → Services → LanmanServer → Parameters”
Rightclick and select new DWORD (32-bit). Name it “AutoShareWks”.
Default value is “0” which means the shares are turned off. Set this to “1” to activate the shares again.
Reboot and be amazed

windows/windows7/adminshare.txt · Last modified: 2017/03/01 12:50 by 127.0.0.1