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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
LN
Engaged Sweeper
Hi all,

Regarding the article below:

https://www.lansweeper.com/kb/109/deploying-a-package-manually-or-based-on-a-schedule.html

Can it be used to automate LSPush as a scheduled job/task? Even though it's not installing anything? Thanks.
4 REPLIES 4
scarsysadmin
Engaged Sweeper III
If these are domain machines it makes much more sense to use group policy to run lspush.
rleon
Engaged Sweeper
LN wrote:
Hi all,

Regarding the article below:

https://www.lansweeper.com/kb/109/deploying-a-package-manually-or-based-on-a-schedule.html

Can it be used to automate LSPush as a scheduled job/task? Even though it's not installing anything? Thanks.


It is very simple.

1. Place the latest LSPush.exe in your DefaultPackageShare$ on your lansweeper server.
2. Create the Deployment Package. (see below)
3. Create Schedule for Deployment based on lansweeper report, group or specific assets. I use the default reports for all member workstations and all member servers. (see below)
4. Watch the magic the next morning or run the schedule to test.
danielm
Champion Sweeper II
some other fun things to do are

a manual push scan for servers that for some reason you cant scan (firewall etc)

cmd.exe /K {actionpath}psexec -d \\{computer} -s "\\SERVERNAME\lansweeper$\lspush.exe" SERVERNAME



or make a self extracting archive (like RAR) and then put the lspush.exe in it with a command of
"lspush.exe 192.168.1.234 /showresult" and give it to people as a manual run type of deal.
It will run for them and show them when its done. nice for tricky laptops out there on vpn.


mlachance
Engaged Sweeper III
You can schedule system scans under Scanning -> Scanning Targets. If you want to schedule LSPush on the client side, you would have to use Windows Task Scheduler. You could create an installer package that "creates" a scheduled task on the client machine.

1. Create scheduled task on a machine using Windows Task Scheduler

Be sure to include time, application to launch (lspush.exe), etc...

2. Export the task to an .xml file

3. Place a copy of LSPush.exe in your {PackageShare} location along with the exported .XML

4. Create a Lansweeper deployment package
Step 1.
(Action) Command
(Step Name) LSPush - Task Scheduler
(Command) Schtasks.exe /Create /TN "{PackageShare}\Installers\LSPush\Name of Task" /XML "Name of XML.xml"

Step 2.
(Action) Command
(Step Name) LSPush - Copy to Client
(Command)cmd.exe /c xcopy.exe /Y /i /s {PackageShare}\Installers\LSPush\LSPush.exe "C:\path"