One way to get you agent to install remotely when a scheduled task just doesn't work...
Using powershell and psexec
make sure you agent.exe is copied to c:\temp of the machine you run this from
Here is the powershell script.
-------------------------------------------
cls
$computers = gc "C:\temp\computers1.txt"
$command = "c:\temp\client_with_status.exe"
foreach ($computer in $computers)
{
echo "Trying $computer now..."
if (Test-Connection -Cn $computer -quiet -count 1)
{
Write-host "$computer is online"
if (!(Test-Path \\$computer\c$\temp\client_with_status.exe))
{
echo "file not found on $computer...copying file"
write-host ""
copy c:\temp\client_with_status.exe \\$computer\c$\temp
echo "file found on $computer...executing now"
psexec.exe \\$computer cmd /c C:\temp\Client_with_status.exe
write-host "...$computer is complete"
}
}
Else
{
write-host "...$computer was not online"
}
write-host ""
}
------------------------------------------
I hope this helps someone.