This is a very useful query and idea, unfortunately it doesn't seem to be working in my test env. Is the above still a viable query? I get a time out and have replicated a simple, "passwords.txt" file on the local user's desktop.
This query identifies if Server Message Block (SMB) version 1 is enabled in Windows. SMBv1 has many security vulnerabilities and should not be used. How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows | Microsoft Learn SELECT ...