PS Script - Scheduled Task

Author Message
mitchelmarsh

  • Total Posts : 4
  • Scores: 0
  • Reward points : 0
  • Joined: 4/5/2010
  • Status: offline
PS Script - Scheduled Task Monday, April 05, 2010 12:19 AM (permalink)
0

I have a PS script which seems to work just fine when run from the command line, however, when scheduled it does run but does not complete properly. Case in point, I am building a list of files from a query of an Oracle database, but none of the calls to the Oracle commands are run. This is on XP and somewhere I read that Net libraries won't work in scheduled PS script because of something to do with the console window?
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    Re:PS Script - Scheduled Task Monday, April 05, 2010 12:26 AM (permalink)
    0
    If you can remember where you read that about the .net libraries, I would like to read it. I have not heard that. I have run PS scripts as scheduled tasks before (as a matter of fact one is going to run on this box in about 30 minutes). I suspect that your issue is probably related to user context. Are you forcing the scheduled task to run as you?
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9