jwood.mls wrote:
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)
<?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><QueryList><Query Id="0" Path="Microsoft-Windows-NetworkProfile/Operational"><Select Path="Microsoft-Windows-NetworkProfile/Operational">*[System[Provider[@Name='Microsoft-Windows-NetworkProfile'] and EventID=10000]]</Select></Query></QueryList></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>