Batchfile schtasks problem

Home Forums Scripting DOS Command Shell Batchfile schtasks problem

Viewing 1 post (of 1 total)
  • Author
  • #159363

    Hi all!

    Here’s my problem: I want all domain computer to run at logon a script, that will create a schedule task, like this:

    schtasks /create /TN redemarrage /RU domainadministrator /RP password /SC “toutes les semaines” /D JEU /TR c:Scriptsreboot_pc.bat /ST 04:00:00

    sorry, parameter are in french as the hole company has french OS :D

    The issue? if the user is not an admin, I get this message:

    WARNING: The Scheduled task “redemarrage” has been created, but may not run because the account information could not be set.

    It will create the task but with the user as creator and as run as.. Can’t get rid of it. I tried using SYSTEM, same error.

    ANyone already seen this?

    Thanks for any help :D

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.