Copy link to clipboard
Copied
On our win 2003 dev server we cfexecute a batch file which in turn calls another batch file, CONNECT.COM which temporarily connects to each of our production servers so that we can copy new files over to production using BeyondCompare. This has been working fine for years.
CONNECT.COM is like this but of course encrypted:
REM %1 is drive letter, e.g. X: $2 is sharename, e.g. "\\dw1\dw"
net use %1 %2 {synchuser password here} /USER:domainname\synchuser /persistent:no
We recently upgraded from CF7 to CF9 and at the same time switched to using a non-administrative account to run CF under. Now our synchronization script won't complete, i.e. it runs the batch file to the point where CONNECT.COM is called then times out while trying to make the connection.
We also run this script as a CF scheduled task and have the same problem so we tried running the task using an admin username/password.. That didn't help.
I'm an administrator and can run the batch file with no problem. I can also run it using a windows scheduled task running under the admin uesrname/password we tried with the CF scheduled task. It just seems that ColdFusion can no longer execute the NET USE command.
Any ideas?
Thanks
Copy link to clipboard
Copied
It sounds like the account used to start the ColdFusion service does not have the rights it needs on the servers in question. Either change the account that the CF service runs under, or give the CF account the necessary priviledges to the files in question.