→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
servicedesk
Champion Sweeper II
Is there any way to schedule a deployment task to run at the next startup ?

That would be interesting for tasks like update software like Microsoft Office, this way you ensure that the users aren't working on any file preventing lose they work.

Many thanks
1 ACCEPTED SOLUTION
Daniel_B
Lansweeper Alumni
Setting up a deployment package execution after the next reboot is not currently supported.

The best way might be under Deployment\Schedules to configure a deployment schedule with execution after scanning. Then set up LsPush or LsClient on your computers in a startup script through group policy or use Active scanning. However, a small delay will happen in any case until the computer was scanned and the package gets deployed.

View solution in original post

4 REPLIES 4
servicedesk
Champion Sweeper II
I found a way to achieve it, creating a command step like:

schtasks /create /tn "MSO 2013 install" /tr C:\apps\Office2013\install.bat /sc onstart /RU SYSTEM /F


This creates a scheduled task and will run at OS start up using the system account.
The batch file "install.bat" contains the commands to run.
"MSO 2013 install" is the name I choosed for this task.

more info:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb736357(v=vs.85).aspx

Regards
Bert_D
Lansweeper Employee
Lansweeper Employee
Another option would be to run the package at night.

Deploying the package with the 'Wake On Lan' option and shutting them down after.
Daniel_B
Lansweeper Alumni
Setting up a deployment package execution after the next reboot is not currently supported.

The best way might be under Deployment\Schedules to configure a deployment schedule with execution after scanning. Then set up LsPush or LsClient on your computers in a startup script through group policy or use Active scanning. However, a small delay will happen in any case until the computer was scanned and the package gets deployed.
ict-user
Engaged Sweeper III
Maybe you can post it in the Lansweeper wishlist part