Notification

Icon
Error

Deploy when available

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

jwood.mls

Member Original PosterPosts: 42
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: 277  
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: 14  
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.

Active Discussions

Lansweeper Lansweeper Webserver Error
by  Bruce.B   Go to last post Go to first unread
Last post: Today at 3:19:01 AM(UTC)
Lansweeper LsAgent install issue
Belarus  Susan.A  
Go to last post Go to first unread
Last post: Yesterday at 8:46:19 PM(UTC)
Lansweeper Is a Common Table Expression possible?
by  PatrickWolf   Go to last post Go to first unread
Last post: Yesterday at 6:52:24 PM(UTC)
Lansweeper Tracking assets like docking station, mouse and keyboards
by  cycleheat  
Go to last post Go to first unread
Last post: Yesterday at 5:00:39 PM(UTC)
Lansweeper Update to V. 7.2.107.4
by  cycleheat   Go to last post Go to first unread
Last post: Yesterday at 4:57:38 PM(UTC)
Lansweeper Windows Defender AV
by  Rob B  
Go to last post Go to first unread
Last post: Yesterday at 4:55:19 PM(UTC)
Lansweeper Scan Server Scanning wrong IP range
by  wayneRex   Go to last post Go to first unread
Last post: Yesterday at 3:49:36 PM(UTC)
Lansweeper Lansweeper support levels
by  RobertB  
Go to last post Go to first unread
Last post: 1/23/2020 10:39:05 PM(UTC)