Question
You have a server that runs Windows Server.
You need to prevent the creation of SMB Direct connections.
Which cmdlet should you run?
- A. Disable-WindowsOptionalFeature Correct
- B. Remove-WindowsFeature
- C. Set-NetAdapterAdvancedProperty
- D. Disable-NetAdapterBinding
Explanation
SMB Direct is an optional Windows feature named SMBDirect, and Microsoft documents disabling it with Disable-WindowsOptionalFeature -Online -FeatureName SMBDirect (and re-enabling it with Enable-WindowsOptionalFeature). Once the feature is disabled, SMB cannot create SMB Direct (RDMA) connections. Remove-WindowsFeature removes server roles and features installed through Server Manager, not the SMBDirect optional component. Set-NetAdapterAdvancedProperty changes driver-level adapter properties, and Disable-NetAdapterBinding unbinds protocols such as IPv6 or File and Printer Sharing from an adapter; neither is the documented way to stop SMB Direct.