Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm trying to create a scheduled task on a remote server. I'm using schtasks.exe.
The remote server has no domain.
I type the line:
c:\> schtasks /create /s server /tn taskname /sc minute /tr taskbat /u userI am asked for the password, and then I get the following:
WARNING: The Scheduled task "taskname" has been created, but may not run because
the account information could not be set.I'm sure the user and password are correct.
I've found some info on microsoft's website:
http://technet2.microsoft.com/Windo...They say:
This warning indicates that the remote domain could not authenticate the account specified by the /u parameter. In this case, the remote domain could not authenticate the user account because the local computer is not a member of a domain that the remote computer domain trusts. When this occurs, the task job appears in the list of scheduled tasks, but the task is actually empty and it will not run.My task doesn't run, but I can't understand why, as user and pass are correct (I use them to log in...).
Can you give me any hint? Somewhere to look at?
Thanks in advance

The remote server has no domain.
This could be a big issue. Are you trying to create a task on a standalone server that is within a domain, but not a member of the domain? Or is this a standalone server that is in no way connected to a domain? I'm sorry but your post is a little confusing and I'm afraid I don't understand.
The account/password you're using is the Administrator account on the local system....correct?

I have the same problem on different scenarios:
When trying to create a scheduled task on a server with his own domain (not my PDC). I use an account with admin privs on this server.
When trying to create a scheduled task on a server within a domain (not PDC, only member). I use an account with adminprivs on the domain (it's not my domain).
Hope this clarifies...

How are you connecting to the servers in question? You should be able to connect with RDP and create the tasks without any trouble.

Yes, I can, but that's not the point. I need to create 50 scheduled tasks on 50 different servers. And maybe I need to change them next week. I don't want to connect with RDP, I just want to create tasks remotely, from a script. And it seems schtasks is the tool.
Thanks anyway

![]() |
Problems to join 2003 dom...
|
RIS question
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |