I set scheduled tasks with schtasks command to create for all servers.
This command create task which runs every 5 minutes.
schtasks /create /s "\\server" /U domain\username /p "password" /SC MINUTE /MO 5 /tn taskname /tr "scriptpath"
ERROR: passing the user credential on local connection.
You have to give server name in this format "\\server"