disable_share.bat:
disable_share.reg
Windows Registry Editor Version
5.00
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
[HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Services
lanmanserver
parameters]
"
AutoShareServer
"
=
dword:
00000000
TITLE 正在取消默认的分区共享
...
net share admin $ / del
net share print $ / del
net share c $ / del
net share d $ / del
net share e $ / del
net share f $ / del
net share g $ / del
net share h $ / del
net share i $ / del
net share j $ / del
net share k $ / del
net share l $ / del
net share m $ / del
net share n $ / del
net share o $ / del
net share p $ / del
net share q $ / del
net share r $ / del
net share s $ / del
net share t $ / del
net share u $ / del
net share w $ / del
net share x $ / del
net share y $ / del
net share z $ / del
regedit / s disable_share . reg
net share admin $ / del
net share print $ / del
net share c $ / del
net share d $ / del
net share e $ / del
net share f $ / del
net share g $ / del
net share h $ / del
net share i $ / del
net share j $ / del
net share k $ / del
net share l $ / del
net share m $ / del
net share n $ / del
net share o $ / del
net share p $ / del
net share q $ / del
net share r $ / del
net share s $ / del
net share t $ / del
net share u $ / del
net share w $ / del
net share x $ / del
net share y $ / del
net share z $ / del
regedit / s disable_share . reg
disable_share.reg
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)