|
Shane:
This what I was doing but it is not practical because the PPS slide appear to the user when he login but since most of our employees keep their
Workstations only locked off without logoff & logon for long time (can be a week), I found that I need to schedule executing this PPS slide on their BC’s.
The group policy on our main domain does not force logoff & logon and it is very difficult for me to ask for changing this policy.
CO:
If I placed the slide\script on the computer shutdown, no one will see it because they (if they decide to turn off the computer after long time) will simply Ctrl + Alt + Del and select shutdown and leave the office.
Jens:
It is a 20 seconds slide and we want to schedule it to appear to the employees every couple of days.
They are about 12 slides, each one show a success story for one of our employees who added value to the company.
Now,
I have faced another problem with JT and please do not tell me it is expected behavior:
All what I want to do is to set the EndDate parameter for the task.
The following code worked successfully under my account that I used to login but it did not when I login with my account and use the service account to schedule the task.
D:\jt.exe /SC "Domain Name\service account" "password.123" /SM \\bc301828 /SJ ApplicationName="Ping1" Parameters="C:\WINDOWS\Ping1" WorkingDirectory="C:\WINDOWS\Ping1" Comment="hhhhhh" Creator="domain name\attiahia" Priority=Normal MaxRunTime=3600000 DontStartIfOnBatteries=0 KillIfGoingOnBatteries=0 RunOnlyIfLoggedOn=0 SystemRequired=0 DeleteWhenDone=1 Suspend=0 StartOnlyIfIdle=0 KillOnIdleEnd=0 RestartOnIdleResume=0 Hidden=0 TaskFlags=0
/CTJ StartDate=03/30/2004 EndDate=04/05/2004 StartTime=11:03 HasEndDate=1
KillAtDuration=0 Disabled=0
Type=Daily /SAJ "Task1.job"
[TRACE] Setting account information
[TRACE] Setting target computer to '\\bc301828'
[TRACE] Setting job's properties
[TRACE] Created trigger 0
[TRACE] Setting properties on trigger 0
[TRACE] Adding job 'Task1.job'
[FAIL ] ITaskScheduler::AddWorkItemn hr=0x80070005
so when I keep the same code but with replacing the service account with my account that I am currently logged in with , it will work. Please help.
I have tried to use /STJ EndDate=04/05/2004 but also did not work.
|