SMB na systemach Windows
W systemach Windows 8 i Windows Server 2012 wprowadzono nowe polecenie
cmdlet Set-SMBServerConfiguration
dla programu Windows PowerShell.
Polecenie cmdlet umożliwia włączanie i wyłączanie ( On OFF)
protokołów SMBv1, SMBv2 i SMBv3 w komponencie serwera.
Po uruchomieniu polecenia cmdlet Set-SMBServerConfiguration nie trzeba ponownie uruchamiać komputera.!!!
SMBv1
- Detect:PowerShell
-
Get-SmbServerConfiguration | Select EnableSMB1Protocol - Disable: PowerShell
-
Set-SmbServerConfiguration -EnableSMB1Protocol $false - Enable: PowerShell
-
Set-SmbServerConfiguration -EnableSMB1Protocol $true
SMB v2/v3
- Detect: PowerShell
-
Get-SmbServerConfiguration | Select EnableSMB2Protocol - Disable: PowerShell
-
Set-SmbServerConfiguration -EnableSMB2Protocol $false - Enable: PowerShell
Set-SmbServerConfiguration -EnableSMB2Protocol $true
CLIENT
Oto jak wykryć stan, włączyć i wyłączyć protokoły SMB na kliencie SMB z systemem
Windows 10, Windows Server 2019, Windows 8.1, Windows Server 2016, Windows Server 2012 R2 i Windows Server 2012.
SMBv1 on SMB Client
Detect Windows Command Prompt
sc.exe qc lanmanworkstation
Disable: Windows Command Prompt
sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
sc.exe config mrxsmb10 start= disabled
Enable: Windows Command Prompt
sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
sc.exe config mrxsmb10 start= auto
Więcej informacji patrz Server storage at Microsoft
SMB v2/v3 on SMB Client
- Detect:
Windows Command Prompt
-
sc.exe qc lanmanworkstation - Disable:
Windows Command Prompt
-
sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi sc.exe config mrxsmb20 start= disabled - Enable:
Windows Command Prompt
sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
sc.exe config mrxsmb20 start= auto
0 Comments