winstat disk -drive c:\
从Windows Server 2016 1709(和Windows 10 Fall Creators)开始,默认情况下禁用SMBv1组件(客户端和服务器)(也禁用来自SMBv2的访客访问)。要使用过时版本的协议访问旧系统,必须单独安装。您需要安装SMB 1.0 / CIFS文件共享支持功能并使用以下命令启用SMB 1.0:
Add-WindowsFeature FS-SMB1
Set-SmbServerConfiguration -EnableSMB1Protocol $true
禁用
Set-SmbServerConfiguration -EnableSMB1Protocol $false
This article describes how to enable and disable Server Message Block (SMB) version 1 (SMBv1), SMB version 2 (SMBv2), and SMB version 3 (SMBv3) on the SMB client and server components.
Important
We recommend that you do not disable SMBv2 or SMBv3. Disable SMBv2 or SMBv3 only as a temporary troubleshooting measure. Do not leave SMBv2 or SMBv3 disabled.
In Windows 7 and Windows Server 2008 R2, disabling SMBv2 deactivates the following functionality:
In Windows 8, Windows 8.1, Windows 10, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, and Windows Server 2019, disabling SMBv3 deactivates the following functionality (and also the SMBv2 functionality that's described in the previous list):
The SMBv2 protocol was introduced in Windows Vista and Windows Server 2008.
The SMBv3 protocol was introduced in Windows 8 and Windows Server 2012.
For more information about the capabilities of SMBv2 and SMBv3 capabilities, see the following articles:
Detect:
Get-WindowsOptionalFeature -Online -FeatureName smb1protocol
Disable:
Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol
Enable:
Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol
created a file in here which i called "dhcpd-extras.conf" and added the extra options i wanted for the dhcp server. use the same tags as you can see in the /etc/dhcpd/dhcpd.conf file, which should be like "dhcp-option=tag:eth00,option:tftp-server-name,192.168.0.12" unless you have some exotic setup.
编辑 /etc/rc.network
find the part that looks like:if [ "${CONF_LIST}" = "" ]; then
return 1;
fi
在其后加入以下代码:
local CONF_EXTRAS="/path/dhcpd-extras.conf"
if [ -e ${CONF_EXTRAS} ]; then
CONF_LIST="${CONF_LIST} ${CONF_EXTRAS}"
fi
保存后退出
重启DSM
just remember to add the changes to the rc.network file each time you update the disk station firmware/os
内容修改后:
if [ "${CONF_LIST}" = "" ]; then
return 1;
fi
####################################################################################
local CONF_EXTRAS="/etc/dhcpd/dhcpd-extras.conf"
if [ -e ${CONF_EXTRAS} ]; then
CONF_LIST="${CONF_LIST} ${CONF_EXTRAS}"
fi
######################################################################################
DNS_INFO_FILE="/etc/dhcpd/dhcpd-dns-dns.info"
DNS_CONF_FILE="/etc/dhcpd/dhcpd-dns-dns.conf"
isEnable=`/bin/get_key_value ${DNS_INFO_FILE} enable`
if [ "x${isEnable}" = "xyes" ] && [ -f ${DNS_CONF_FILE} ]; then
CONF_LIST="${CONF_LIST} ${DNS_CONF_FILE}"
fi
216.239.38.120 是 Google 提供的一个特殊 DNS 服务器,用于强制开启 YouTube 受限模式(Restricted Mode) 。 如果你想在家里强制 YouTube 进入受限模式,可以在 路由器的 DNS 设置 中配置以下 DNS 服务器: D...