based on the little info you have provided... this is what works for me
In regards to network scanning using SMB protocol to a shared folder on the network a common hang up i have witnessed is not using the correct port number, use port 445. Also if you are required to use an sort of authentication make sure you list your domain first for example : DOMAIN\username
hope that helps...
We dont use 365 so i cant offer any tips there but im sure one of the xerox moderators can point you in the right direction.