[wpkg-users] Running wpkg using schtasks

Tomasz Chmielewski mangoo at wpkg.org
Tue Nov 7 21:00:13 CET 2006


Joshua Weage wrote:
>> Certainly, you did something wrong (paths? username? password?). What
>> is 
>> the eventlog saying?
> 
> Nothing.  Schtasks is logged to C:\Windows\SchedLgU.Txt which just
> shows that the task was started, but the cmd.exe process never exits
> and I never see wpkg-start.bat show up in the task list.
> 
> schtasks /create /ru GLOBAL\warwpkg /rp password /sc daily /tn wpkg /tr
> \\warlns2.global.arup.com\netboot\test.bat /st 23:00:00
> 
> Task accepted.
> 
> schtasks /run /tn wpkg
> 
> Task is run.  Output shows up in C:\test.log, created by test.bat.
> 
> schtasks /delete /tn wpkg
> schtasks /create /ru GLOBAL\warwpkg /rp password /sc daily /tn wpkg /tr
> \\warlns2.global.arup.com\netboot\wpkg-0.9.10\wpkg-start.bat /st
> 23:00:00
> 
> Task accepted.
> 
> schtasks /run /tn wpkg
> 
> Task is run and stays running forever until I kill the cmd.exe process
> with task manager.  No output to eventlog.  SchedLgU.Txt just shows the
> job exited with an error.

And how does your wpkg-start.bat file look like?

What if you insert something like "echo %TIME% %DATE% > C:\1" before 
"cscript ...", and something similar (with output to C:\2) after 
starting "cscript ..."?


>> One other thing you could try is to use the installer:
>>
>> http://wpkg.org/files/beta/installer/wpkg-installer-0.50.zip
>>
>>
>> And restart the service periodically (via schtasks, as a SYSTEM user,
>> so 
>> no password needed):
> 
> I may end up doing this.  I prefer to have wpkg run via group policy
> startup scripts, but that isn't completely working for me.

If you have a AD controller, than you can just add a startup script for 
all machines...


-- 
Tomasz Chmielewski
http://wpkg.org






_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list