I have a .vbs script that copies files from multiple remote computers. Each server has a shared folder that I map as a network drive (W. When I run it by double-clicking, it runs fine, but if I run it from Task Scheduler (Win Server 2003) it hangs on this line:
I've tried everything but I can't figure out why it won't run in task scheduler. Please help!
Code:
NetworkObject.MapNetworkDrive "W:", "\\xxx.xxx.xxx.xxx\sharename", false, <username>, <password>
I've tried everything but I can't figure out why it won't run in task scheduler. Please help!