diff --git a/%E5%81%9C%E7%94%A8-SMB-%E6%9C%8D%E5%8B%99.md b/%E5%81%9C%E7%94%A8-SMB-%E6%9C%8D%E5%8B%99.md new file mode 100644 index 0000000..1dc8a68 --- /dev/null +++ b/%E5%81%9C%E7%94%A8-SMB-%E6%9C%8D%E5%8B%99.md @@ -0,0 +1,17 @@ +# 停用 SMB1 功能 + +```powershell +Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol +``` + +# 停用開機啟動 + +```powershell +Set-Service -Name LanmanServer -StartupType Disabled +``` + +# 立即停止服務 + +```powershell +Stop-Service -Name LanmanServer -Force +``` \ No newline at end of file