Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2019 05:02 PM
I would be much easier to remotely manage the LsAgent.ini settings if you put those settings in the HKLM registry.
For example I want to force a scan of all the LSAgent hosts. I have network tools that I can remotely modify the registry and restart services. So I could clear all the LSAgent hosts LastScan & LastSent settings and then restart the LanSweeper Agent Service.
For example I want to force a scan of all the LSAgent hosts. I have network tools that I can remotely modify the registry and restart services. So I could clear all the LSAgent hosts LastScan & LastSent settings and then restart the LanSweeper Agent Service.
Labels:
- Labels:
-
Product Feedback
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2021 05:32 PM
Why not use LSPUSH? You can do those on demand using a deployment.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2021 12:26 AM
Yes indeed it works with LSPUSH
it was the syntax that was not very clear!
so it is: lspush.exe LAN-001 9500
https://www.lansweeper.com/knowledgebase/how-to-scan-with-lspush/
it was the syntax that was not very clear!
so it is: lspush.exe LAN-001 9500
https://www.lansweeper.com/knowledgebase/how-to-scan-with-lspush/
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2021 05:49 PM
Joe Conger wrote:
I would be much easier to remotely manage the LsAgent.ini settings if you put those settings in the HKLM registry.
For example I want to force a scan of all the LSAgent hosts. I have network tools that I can remotely modify the registry and restart services. So I could clear all the LSAgent hosts LastScan & LastSent settings and then restart the LanSweeper Agent Service.
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2021 04:46 PM
Orion Poplawski wrote:Joe Conger wrote:
I would be much easier to remotely manage the LsAgent.ini settings if you put those settings in the HKLM registry.
For example I want to force a scan of all the LSAgent hosts. I have network tools that I can remotely modify the registry and restart services. So I could clear all the LSAgent hosts LastScan & LastSent settings and then restart the LanSweeper Agent Service.
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
How do you run this? What is a yml file?
Thanks
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2021 11:37 AM
does the script exist in Powershel for Windows ?