The Lansweeper Community will be under construction as of March 2nd, 2026. This site will move to a static version—join us on Reddit to keep the conversations going. More info here.
Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DGoodwin
Engaged Sweeper
If we run the lsclient.exe <servername> in a batch file, whether it is in a login script or not, Is there a way to make the lsclient.exe timeout after a certain period. Reasoning is that if our server were to be down at all, we would not want our users login script to sit there for more than say 2 seconds. Any ideas?
3 REPLIES 3
Hemoco
Lansweeper Alumni
You can use this syntax in a bat file:

start cmd.exe /C "c:\lsclient.exe servername"

or better, move the lsclient part to a vbs file and run this from the bat file.
DGoodwin
Engaged Sweeper
No, we use the standard batch files. I am more curious if there is or could be a silent switch implemented into the lsclient.exe file. so we could use "lsclient.exe /s server". That way the end user would not have to see the screen wait for the client to start up. Sure we could use the start /wait option for windows, but that gets more tricky if there are windows 2000 clients in the mix. Any help is greatly appreciated.
Hemoco
Lansweeper Alumni
Do you use a vbscript for the startup script?
If so you can start the lsclient asynchronous in the background while the rest of your script continues.