新增 停用 SMB 服務
17
%E5%81%9C%E7%94%A8-SMB-%E6%9C%8D%E5%8B%99.md
Normal file
17
%E5%81%9C%E7%94%A8-SMB-%E6%9C%8D%E5%8B%99.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# 停用 SMB1 功能
|
||||
|
||||
```powershell
|
||||
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
|
||||
```
|
||||
|
||||
# 停用開機啟動
|
||||
|
||||
```powershell
|
||||
Set-Service -Name LanmanServer -StartupType Disabled
|
||||
```
|
||||
|
||||
# 立即停止服務
|
||||
|
||||
```powershell
|
||||
Stop-Service -Name LanmanServer -Force
|
||||
```
|
||||
Reference in New Issue
Block a user