| 
 | 
7#
 
 
 楼主 |
发表于 2019-8-22 02:09:35
|
只看该作者
 
 
 
 
 
我是用CMD命令精简的,尽量不用软件,所以查了一下DISM的文件,是这样的,比较复杂       
<Item Type="CheckBox" Name="#隐藏资源管理器导航窗口中的网络"> 
        <Applicable> 
          <RegExist Key="HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" Value="Attributes" Type="REG_DWORD"/> 
        </Applicable> 
        <System> 
          <State> 
            <Applicable> 
              <And> 
                <RegExist Key="HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" Value="Attributes" Type="REG_DWORD" Compare="&" Data="100000"/> 
                <RegExist Key="HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" Value="Attributes" Type="REG_DWORD" Compare="&" Data="100000" Wow64="True"/> 
              </And> 
            </Applicable> 
          </State> 
          <True> 
            <Activate Restart="Explorer"> 
              <RegWrite Key="HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" Value="Attributes" Type="REG_DWORD" Operator="|" Data="100000"/> 
              <RegWrite Key="HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" Value="Attributes" Type="REG_DWORD" Operator="|" Data="100000" Wow64="True"/> 
            </Activate> 
          </True> 
          <False> 
            <Activate Restart="Explorer"> 
              <RegWrite Key="HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" Value="Attributes" Type="REG_DWORD" Operator="&" Data="FFEFFFFF"/> 
              <RegWrite Key="HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" Value="Attributes" Type="REG_DWORD" Operator="&" Data="FFEFFFFF" Wow64="True"/> 
            </Activate> 
          </False> 
        </System> 
      </Item> 
 |   
 
 
 
 |