Welcome to Powergui.org - an open source community for Windows Powershell

PowerGUI.org PowerGUI.org and blogs

Forums » Active Directory and PowerShell

Thread: Script hangs when running as a scheduled task

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: Apr 7, 2012 7:10 AM by: robots_rule
robots_rule

Posts: 66
Registered: 8/14/07
Script hangs when running as a scheduled task
Posted: Apr 5, 2012 2:26 PM
 
  Click to reply to this thread Reply

When I run a powershell script manually, no issue. When I schedule it, it just hangs and the status is "running"... for like 10, maybe 15 years.

Is there something I could put at the end of my script to force it to quit?

FYI: I know just enough to be dangerous.


Nodgiles

Posts: 63
Registered: 1/30/12
Re: Script hangs when running as a scheduled task
Posted: Apr 6, 2012 8:22 AM   in response to: robots_rule
 
  Click to reply to this thread Reply

have you tried exit?



robots_rule

Posts: 66
Registered: 8/14/07
Re: Script hangs when running as a scheduled task
Posted: Apr 7, 2012 7:10 AM   in response to: Nodgiles
 
  Click to reply to this thread Reply

Believe it or not no... I shall.


Legend
MVP: 2501 + pts
Guru: 2001 - 2500 pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums