无法停止SMB1服务

时间:2018-05-09 11:15:08

标签: powershell smb

在我的Windows Server 2008 R2中,SMB1和SMB2都存在。我想禁用SMB1。我使用以下PowerShell命令来禁用SMB1服务:

sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
sc.exe config mrxsmb10 start= disabled
stop-service mrxsmb10

但是,当我运行最后一个命令时出现以下错误:

Stop-Service mrxsmb10
Stop-Service : Service 'SMB 1.x MiniRedirector (mrxsmb10)' cannot be stopped due
to the following error: Cannot stop mrxsmb10 service on computer '.'.
At line:1 char:1
+ Stop-Service mrxsmb10
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (System.ServiceProcess.ServiceController:ServiceController) [Stop-Service],    ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStopService,Microsoft.PowerShell.Commands.StopServiceCommand

有人请告诉我可能的根本原因是什么。 我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

如果您尝试停用SMBv1,最好按照本文中的说明进行操作

https://support.microsoft.com/en-gb/help/2696547/how-to-detect-enable-and-disable-smbv1-smbv2-and-smbv3-in-windows-and

请确保您仔细阅读该文章,因为在使用Windows 2008 R2时会导致禁用后果

希望有所帮助。

相关问题