I'm trying to run it through Task Scheduler, but the windows script is not running the VBS. I have it copying the script file then executing it locally. I tried just running it from the netlogon share but it was unsuccessful.
@echo off
if not exist c:\temp md c:\temp
echo %date% %time% 1>>c:\temp\Task.log
copy "\\shares1\netlogon\configureDCAgentServerCommunication.vbs" "\\%computername%\C$\temp\"
cscript c:\temp\configureDCAgentServerCommunication.vbs DCS.cclan.local 195.168.0.21 8020 8383 http 1>>c:\temp\Task.log 2>>&1
Any help would be appreciated.