[wpkg-users] Start WPKG service with run at shutdown

Rainer Meier r.meier at wpkg.org
Tue Jun 8 14:47:33 CEST 2010


Hi Daniel,

On 14.05.2010 10:31, Daniel Dehennin wrote:
> I'm using WPKG client on workstations with run on shutdown to avoid user
> annoyance.
> 
> I defined a schedule task to start the service at night if the computer
> was not shutdowned by the user but it does nothing.
> 
> This is working when I use WPKG client on startup:
> 
> "net start wpkgservice" fills the logs on my server.
> 
> Is it possible to make synchronisation happened when WPKG client is
> configured to run at shutdown?

I personally don't use synchronization at shutdown. The problem on your side
seems to be that when you schedule at shutdown the service does not terminate
after synchronization but instead synchronized when it is actually asked by
Windows to terminate.

Options you could follow to schedule WPKG while WPKG service is already running:

- Not sure if WPKG service would also synchronize if asked to stop. If yet you
might just "restart" the service via scheduled job to make the synchronization
happen.

- You might install a second WPKG service which is run by the task scheduler
Copying the service entries in the registry might be sufficient to achieve this
(however I did not test this).

- You might invoke wpkg.js with your own *.cmd script invoked by task scheduler.
Unfortunately this would also require to store your credentials etc. in the CMD
script and maintain both, WPKG Client configuration and your scheduled task.

br,
Rainer



More information about the wpkg-users mailing list