Identify SMB Versions on ALL Clients across the domain.

CTCRM
CTCRM used Ask the Experts™
on
We require to identify what SMB version is being used on all client machines on the network (Win 7 and 10).

A PowerShell script to extract the SMB version of all clients (single domain) and place the output into a CSV.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Commented:
Do you want to know the server or the client part? The basics are covered at https://support.microsoft.com/en-us/help/2696547/how-to-detect-enable-and-disable-smbv1-smbv2-and-smbv3-in-windows-and .
You need to perform different checks for pre-W8 and W8+, and for SMB client and SMB server.
You cannot check the server part remotely (in any easy way). Remote registry, PS Remoting work though.
The client part can be checked with sc.exe, even remotely, but it is indirect by checking for service dependencies.

Another issue with such a request is that ALL - you never can make sure you get all clients. You can use the current Active Directory computer account list to go thru, but you will always miss machines because they are decommissioned or just off at this moment (or have other issues).

The best advice I can give is to just add a computer startup script to AD, which disables SMBv1 on the single machine it runs on. And log that it did.
Or just use the GPOs as stated at the end of the MS support article.
CTCRMInfrastructure Engineer

Author

Commented:
Hi
Its for Windows 7 Clients only and to be honest they're not going to be above SMB version 2.1 because of Windows 7 limitation.
CTCRMInfrastructure Engineer

Author

Commented:
Thanks, the information was helpful for this request.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial