Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Get-ScheduledJob PowerShell 3.0

99 views
Skip to first unread message

Armando Torres

unread,
Oct 19, 2012, 9:57:36 AM10/19/12
to
Hi,
Can someone help?
I am trying to set-JobTrigger on a existing Schedule job that I have,
When I run the Get-ScheduleTask command, I do see all my schedule jobs, but when I run Get-ScheduledJob -Name AT-Test, I do not get anything back.

> Get-ScheduleTask
Name Status LastRunTime NextRunTime
---- ------ ----------- -----------
AT Snap-On Ready 10/18/2012 7:00:00 AM 10/25/2012 7:00:00 AM
AT-Test Ready 12/30/1899 12:00:00 AM 12/30/1899 12:00:00 AM

ERROR
> Get-ScheduledJob -Name AT-Test
Get-ScheduledJob : A scheduled job definition with Name AT-Test could not be found.
At line:1 char:1
+ Get-ScheduledJob -Name AT-Test
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-ScheduledJob], RuntimeException
+ FullyQualifiedErrorId : ScheduledJobDefinitionNotFoundByName,Microsoft.PowerShell.ScheduledJob.GetScheduledJobCommand

Bear

unread,
Jan 8, 2013, 1:05:00 PM1/8/13
to
Try this...

get-scheduledtask "AT-Test" |start-task
0 new messages