Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Can anyone answer? schtasks...

Can anyone answer? schtasks...

Scheduled Pinned Locked Moved System Admin
helpsysadminwindows-admintutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LeprosyLM
    wrote on last edited by
    #1

    Hello, I have tried unsuccessfully on many sites to find the answer to this so kudos if you have any insight. I am using schtasks schtasks /Create /S WS2 /RU Administrator /RP Foobar /SC ONSTART /TN MyTask /TR C:\Admin\RunMe.bat to create a task on a windows xp workstation remotely that runs a SYSTEM boot up. When I create the task remotely, occasionnaly it works fine, but usually i get a: "trust relationship for this workstation and the primary domain failed" error. I believe this might have something to do with the task trying to run before the network is fully set up etc, or somethign funky with active directory. If I run the task immedietly it works fine, only when I try to run the task on start, and only occasionally. The funny thing is, when I create the task I use the local Admin username and password, but I think it may fail because it seems to try to authenticate the credentials that I used to log into the machine to create the task FROM. Anyone know why this is happening and how to fix it? thanks steve

    L 1 Reply Last reply
    0
    • L LeprosyLM

      Hello, I have tried unsuccessfully on many sites to find the answer to this so kudos if you have any insight. I am using schtasks schtasks /Create /S WS2 /RU Administrator /RP Foobar /SC ONSTART /TN MyTask /TR C:\Admin\RunMe.bat to create a task on a windows xp workstation remotely that runs a SYSTEM boot up. When I create the task remotely, occasionnaly it works fine, but usually i get a: "trust relationship for this workstation and the primary domain failed" error. I believe this might have something to do with the task trying to run before the network is fully set up etc, or somethign funky with active directory. If I run the task immedietly it works fine, only when I try to run the task on start, and only occasionally. The funny thing is, when I create the task I use the local Admin username and password, but I think it may fail because it seems to try to authenticate the credentials that I used to log into the machine to create the task FROM. Anyone know why this is happening and how to fix it? thanks steve

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try to read the following article from Here[^] it might give you some idea. Roath Kanel APO-CEDC Save Children Norway-Cambodia Office

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups