tacticalrmm/scripts_wip/Win_SMB_version.ps1

10 lines
282 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GET SMBv2 SERVER STATUS
Get-SmbServerConfiguration | Select EnableSMB2Protocol
# GET SMB Session versions
Get-SmbSession | Select-Object -Property ClientComputerName,ClientUserName,Dialect,NumOpens
#Install SMB1
Get-WindowsOptionalFeature Online FeatureName SMB1Protocol