with this command: Set WSHShell = CreateObject("WScript.Shell") You are creating an instance of Shell object on YOUR machine. As far as I know, Shell object does not have methods to connect to other computers of a same domain or workgroup. My recommendation is to find an alternative way for this.