注意:禁用默认共享会导致安装ORACLE时执行先决条件检测不通过,要想安装ORACLE得先打开共享。
1、win+r 运行里输入compmgmt.msc进入计算机管理,在共享文件夹里,去掉所有的盘共享(这一步一定要干,不然后面的设置没效)
2、win+r运行里输入regedit进入注册表编辑器,定位到HKEY_LOCAL_MACHINE---SYSTEM---CurrentControlSet---services---LanmanServer---Parameters
新建一DWORD值类型,命名为AutoShareWks,然后值改为0。
定位到HKEY_LOCAL_MACHINE---SYSTEM---CurrentControlSet---Control---Lsa
将restrictanonymous值改为1。
3、之后重启就可以了。
注:如果懒得找注册表键的位置,可以把以下文本复制进文本文件里,后缀改为.reg,然后双击直接运行即可修改相应键值。
REGEDIT4 [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesLanmanServerParameters] "AutoShareWks"=dword:00000000 [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsa] "restrictanonymous"=dword:00000001