Notification

Icon
Error

Deploy when available

Posted: Monday, January 6, 2020 6:58:55 PM(UTC)
jwood.mls

jwood.mls

Member Original PosterPosts: 50
0
Like
I realize that available status is not immediate, but I was wondering if there is any way (now or upcoming) perhaps when I could do a deployment when something comes available, I would assume in conjunction with the LSagent.

Here is my use case - Laptops (that are on the network) and I need to deploy some files to them, but it's kind of pain to catch them when they are on.

CyberCitizen
#1CyberCitizen Member Posts: 375  
posted: 1/7/2020 1:41:56 AM(UTC)
Originally Posted by: jwood.mls Go to Quoted Post
I realize that available status is not immediate, but I was wondering if there is any way (now or upcoming) perhaps when I could do a deployment when something comes available, I would assume in conjunction with the LSagent.

Here is my use case - Laptops (that are on the network) and I need to deploy some files to them, but it's kind of pain to catch them when they are on.



Set Deploy and retry for upto a week.

Then on next scan it should pick them up and deploy.

The other option is to create a report for said assests.

Eg we have a report that is for machines that don't have our service desk shortcut.

It uses custom file scanning to see if the file is there, if it isn't it shows on the report. Then we have a scheduled deployment that references that report and installs as required. So any time a new machine is added to the network they normally have the service desk shortcut within 15 minutes.
PeterG
#2PeterG Member Posts: 104  
posted: 1/7/2020 2:13:01 PM(UTC)
Originally Posted by: jwood.mls Go to Quoted Post
I realize that available status is not immediate, but I was wondering if there is any way (now or upcoming) perhaps when I could do a deployment when something comes available, I would assume in conjunction with the LSagent.

Here is my use case - Laptops (that are on the network) and I need to deploy some files to them, but it's kind of pain to catch them when they are on.



We have solved this using LSPUSH and setting up a task scheduler to run on IP address change..

Here is how our works.

Computer wakes up, task scheduler triggers detect IP change or logon to machine and it triggers LSPUSH scan which send reports to server, lansweeper server has After Scan tasks setup to execute to push the needed files.

Task Scheduler XML file is below.. modify to your needs (software location and server details)

Code:
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2017-06-15T10:41:50.1757751</Date>
    <Author>SYSTEM</Author>
    <Description>LSPUSH TASK</Description>
    <URI>\LSPush</URI>
  </RegistrationInfo>
  <Triggers>
    <CalendarTrigger>
      <StartBoundary>2017-06-12T10:00:00-04:00</StartBoundary>
      <ExecutionTimeLimit>PT30M</ExecutionTimeLimit>
      <Enabled>true</Enabled>
      <RandomDelay>PT30M</RandomDelay>
      <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
      </ScheduleByDay>
    </CalendarTrigger>
    <LogonTrigger>
      <ExecutionTimeLimit>PT30M</ExecutionTimeLimit>
      <Enabled>true</Enabled>
      <Delay>PT15M</Delay>
    </LogonTrigger>
    <EventTrigger>
      <Enabled>true</Enabled>
      <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Microsoft-Windows-NetworkProfile/Operational"&gt;&lt;Select Path="Microsoft-Windows-NetworkProfile/Operational"&gt;*[System[Provider[@Name='Microsoft-Windows-NetworkProfile'] and EventID=10000]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
    </EventTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>S-1-5-18</UserId>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>true</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>true</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
    <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>C:\{LSPUSH LOCATION}\lspush.exe</Command>
      <Arguments>LansweeperServer.COM 9524</Arguments>
      <WorkingDirectory>%systemroot%\LsPush</WorkingDirectory>
    </Exec>
  </Actions>
</Task>



Peter.Riederer
#3Peter.Riederer Member Posts: 15  
posted: 1/14/2020 12:01:11 PM(UTC)
Originally Posted by: jwood.mls Go to Quoted Post
I realize that available status is not immediate, but I was wondering if there is any way (now or upcoming) perhaps when I could do a deployment when something comes available, I would assume in conjunction with the LSagent.

Here is my use case - Laptops (that are on the network) and I need to deploy some files to them, but it's kind of pain to catch them when they are on.



We use LSagent. We create a report where the software or update e.G. is missing. Then create a scheduled deployment Task with option "after scanning" LS-Agent service starts when a computer has booted, scans the machine and runs the deployment task.
jwood.mls
#4jwood.mls Member Original PosterPosts: 50  
posted: 2/18/2020 10:49:25 PM(UTC)
I've never really made use of LSPush. Does it stay on the server or do you deploy the .exe for it to the individual machines that you need to scan?
CyberCitizen
#5CyberCitizen Member Posts: 375  
posted: 2/19/2020 12:13:46 AM(UTC)
Originally Posted by: jwood.mls Go to Quoted Post
I've never really made use of LSPush. Does it stay on the server or do you deploy the .exe for it to the individual machines that you need to scan?


It goes on the machine or server and call it via a login script or startup script.

Where as ls agent is installed on the machine.
jwood.mls
#6jwood.mls Member Original PosterPosts: 50  
posted: 2/26/2020 3:54:17 PM(UTC)
Is there any reason why you wouldn't or shouldn't just put LSagent on every computer? Seems like that would almost be easiest.

Active Discussions

Lansweeper Windows 10 Upgrade to 2004
by  Alex Beaumier   Go to last post Go to first unread
Last post: Today at 1:18:01 PM(UTC)
Lansweeper snmp trap HP 1910 switch
by  info   Go to last post Go to first unread
Last post: Today at 11:52:17 AM(UTC)
Lansweeper Lsagent cloud relay changes the scanserver value
by  ghelpdesk  
Go to last post Go to first unread
Last post: Today at 2:45:11 AM(UTC)
Lansweeper Is there a chance to get the firewall off via Lansweeper?
by  RedWood   Go to last post Go to first unread
Last post: Yesterday at 11:23:31 PM(UTC)
Lansweeper Not working Wake on Lan
by  RedWood  
Go to last post Go to first unread
Last post: Yesterday at 11:17:33 PM(UTC)
Lansweeper Wake on Lan Issues
by  RedWood   Go to last post Go to first unread
Last post: Yesterday at 11:06:12 PM(UTC)
Lansweeper New Web Interface
by  anpatterson03  
Go to last post Go to first unread
Last post: Yesterday at 10:05:19 PM(UTC)