Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
flindeborg
Engaged Sweeper II

HAs anyone had experience creating or using a script based deployment of LSAgent to Linux and Windows servers? We are attempting to deploy to all rather than to each one individually. We have over 250 servers\VM's to deploy to. None of the servers are in the Azure Entra Cloud. 

3 ACCEPTED SOLUTIONS
ErikT
Lansweeper Tech Support
Lansweeper Tech Support

Hi @flindeborg

 

Have you checked Ansible or Salt? Both are worth looking at in this scenario. 


https://www.redhat.com/en/ansible-collaborative

 

https://docs.saltproject.io/en/3006/topics/index.html
 

View solution in original post

cnf_sw72
Engaged Sweeper II

Hi @flindeborg ,

I'm just going through motions on Windows devices now and having success triggering the deployment from a central network share such as NETLOGON using the below powershell script

Start-Process -FilePath "\\Windows_SMBShare\LsAgent-windows.exe" -ArgumentList "--server LS_Server_FQDN --port 9524 --mode unattended" -Wait

Edit that to your share and server details and run the .ps1 file as a startup powershell script from a gpo seems to do the trick. That way it can tie in with your regular reboot schedules or ran manually if needed.

 

Hope that helps for the Windows boxes at least!

View solution in original post

cnf_sw72
Engaged Sweeper II

So for me I used the script as is.

I was deploying to all servers so I set the scope to Authenticated Users in gpo and linked the gpo at the required OU level. 

But depending on how your domain is laid out you could set the scope to individual computers or bundle them into a group and set the scope to the group 

View solution in original post

7 REPLIES 7
flindeborg
Engaged Sweeper II

Thanks ErikT. I was able to use Ansible and script I created to successfully d3eploy to Linux boxes.

I will be testing deployment to Windows servers using G{PO and Powershell script suggested by another community member

cnf_sw72
Engaged Sweeper II

Hi @flindeborg ,

I'm just going through motions on Windows devices now and having success triggering the deployment from a central network share such as NETLOGON using the below powershell script

Start-Process -FilePath "\\Windows_SMBShare\LsAgent-windows.exe" -ArgumentList "--server LS_Server_FQDN --port 9524 --mode unattended" -Wait

Edit that to your share and server details and run the .ps1 file as a startup powershell script from a gpo seems to do the trick. That way it can tie in with your regular reboot schedules or ran manually if needed.

 

Hope that helps for the Windows boxes at least!

flindeborg
Engaged Sweeper II

Thanks cnf_sw72! I was able to create and deploy to Linux assets using Ansible which I will post in Community at a later time.

I had begun creating a powershell script with the attached but was going to adjust and use the attached via a GPO. Any idea how I specify the servers? I listed by IP Address in Linux script. 

 

cnf_sw72
Engaged Sweeper II

So for me I used the script as is.

I was deploying to all servers so I set the scope to Authenticated Users in gpo and linked the gpo at the required OU level. 

But depending on how your domain is laid out you could set the scope to individual computers or bundle them into a group and set the scope to the group 

flindeborg
Engaged Sweeper II

Thanks again! Will give it a try!

 

cnf_sw72
Engaged Sweeper II

No trouble at all. Hope you get sorted!

ErikT
Lansweeper Tech Support
Lansweeper Tech Support

Hi @flindeborg

 

Have you checked Ansible or Salt? Both are worth looking at in this scenario. 


https://www.redhat.com/en/ansible-collaborative

 

https://docs.saltproject.io/en/3006/topics/index.html
 

Deployment Packages

Share topics/ issues related to deployment packages. Please use/rely on content with caution as it is publicly generated.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now