Hi HL_Alex,
Thank you for using the Support Forum. Please take a look at this solution for a similar code concerning SMB and the share name. Also make sure you have set up SMB scanning correctly. Please consider contacting your support centre for further assistance.