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

Since migrating my Lansweeper server, everything is working fine except for package deployments. I consistently get the following error:

Result: Deployment ended: Incorrect function.. Stop(Failure)
Command: "\\server\share\file.exe" --mode unattended --server NEWSRV--agentkey  AgentKey
Here’s what I’ve tested so far on the new server:

  • If I move the package folder back to the old server, deployments work.
  • If I place the same folder on the new server, I get the error above, even though I’m using the same account and have replicated the share exactly.
  • If I use a virtual drive shared from the old server, deployments work.
  • If I use the same shared drive from the new server, the error comes back.

Each time, I’ve updated the package path and security options accordingly to point to the correct folder.

At this point, I’m out of ideas. Has anyone encountered this kind of issue or have any suggestions?

3 REPLIES 3
Obi_1_Cinobi
Lansweeper Tech Support
Lansweeper Tech Support

Hello there!

Shares can be managed in the Deployment > Security options section of the web console, so I would recommend checking if everything is set up correctly under the security options:

2025-07-30 09_04_11-mRemoteNG - confCons.xml - UVMObi1CinObi_Win2019_11.2.0.3.png

 

Everything is set up correctly. I even tried a package with CheckIf condition and Lansweeper cannot see the file in the location even if it exists.
But if I try to access to the default package share with the share username from my computer or from the new server, it works

Obi_1_Cinobi
Lansweeper Tech Support
Lansweeper Tech Support

Hello there!

If you need further technical assistance, please raise a support case: https://www.lansweeper.com/contact/contact-support/

If you need technical support and have issues with accessing the Support Portal, please use this URL instead: https://www.lansweeper.com/contact/contact-support-case/

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