I have an account that has denied interactive login. But allowed log in as batch and service. Account has permissions as local administrator. Let's call it as a service account.
What I do:
Login via my account to the server,
Created a repeating task, that runs simple batch file (ping an IP address)
Added to the task the account credentials from the service account.
Just for check I run the task manually from scheduled task, and runs ok.
To check the password I run notepad with "run as" with the service account.
The task is run at scheduled task and work is done as expected.
But the next day when it should repeats the task, it fails, due to bad credentials or insufficient access. And repeats again and again.
If I again put the credentials to the task the task runs again only first time.
The same occurence happens also on two other servers I tried it on.
Windows 2003 environment
In gp the account is listed in log in as batch for the server.
Can someone help me with it? Is there an easier way to fix the problem without delete/create a ne account?