→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Tina
Engaged Sweeper
Hello,

I have a problem.
We let the LSpush.exe run by script when a user logs on to the PC . Here we have the problem that the PC will be locked for about 30 seconds and has a black screen .
Is this normal ?

We have only the problem , when they run by script.
Let's start it directly everything works fine.

I hope you can help me.

bye Tina
1 ACCEPTED SOLUTION
Hemoco
Lansweeper Alumni
I suggest running lspush asynchronous on startup, this way it won't affect the users.

Sample script:

CALL "%logonserver%\netlogon\lspush.exe" lansweeperserver

View solution in original post

4 REPLIES 4
svap
Engaged Sweeper III
i do it like that

tasklist | findstr lspush.exe
IF %ERRORLEVEL% EQU 0 goto end

\\server\software\tools\lspush lansweeperserver

:end

exit
Hemoco
Lansweeper Alumni
The copy will always run synchronous which might explain the delay.

Also this line should end with "false"
OBJRUN.Run """c:\users\public\lansw\lspush.exe"" /folder \\srvaw1\import$""",1,false
Tina
Engaged Sweeper
we have created the following VBscribt , which is in the Netlogon folder .


Set OBJFSO = CreateObject("Scripting.FileSystemObject")

if not OBJFSO.FolderExists("c:\users\public\lansw") then
OBJFSO.CreateFolder("c:\users\public\lansw")
OBJFSO.COPYFILE "\\srvaw1\import$\lspush.exe" , "C:\Users\Public\lansw\lspush.exe" , True
end if

Set OBJRUN = WScript.CreateObject("WScript.Shell")
OBJRUN.Run """c:\users\public\lansw\lspush.exe"" /folder \\srvaw1\import$""",1,True
Hemoco
Lansweeper Alumni
I suggest running lspush asynchronous on startup, this way it won't affect the users.

Sample script:

CALL "%logonserver%\netlogon\lspush.exe" lansweeperserver