SMB security enhancements | Microsoft Learn
Select Files & file sharing. Select the File shares tab. To require encryption on a share, select the share name and choose Enable SMB encryption. To require encryption on the server, select File server settings. Under SMB 3 encryption, select Required from all clients (others are rejected), and then choose Save.