RobertB wrote:
Are there any command line switches for the LsAgent that is currently installed on a Windows computer?
For example.
LsAgent.exe /scan to force it to scan?
If yes, where might I find a list of these switches?
Thank you,
This is the ansible play (lansweeper-rescan.yml) we use to force a rescan:
---
- hosts: windows
gather_facts: no
tasks:
- name: "Stop LansweeperAgent"
win_service:
name: LansweeperAgentService
state: stopped
- name: "Remove timestamps from LsAgent.ini"
win_lineinfile:
path: C:\Program Files (x86)\LansweeperAgent\LsAgent.ini
regex: ^Last
state: absent
- name: "Start LansweeperAgent"
win_service:
name: LansweeperAgentService
state: started