‎09-12-2022 04:11 PM - last edited on ‎06-30-2023 03:08 PM by ErikT
Result: Deployment ended: Incorrect function. Stop(Failure). Credential: (internal\svc_mailer). ShareCredential: (LansweeperUser).
Command: powershell.exe -executionpolicy bypass -file "\\USWASPUTIL03\Lansweeper\PackShare\Scripts\Uninstall_Cleanup_EPP_EDR.ps1" -safemode No -attempteduninstall Yes
Can someone help me figure out what im doing wrong? We are trying to test this with 1 device but our goal is to push it to all our device in our org.
‎09-22-2022 05:11 PM
So i figured out how to get it to work. But now the issue is every time i push the script i get it timed out. Is there anyway to track down why it is getting timed out. I have testing the script on my device and it works just fine. But anytime i push it from lansweeper it sits and then times out.
‎09-13-2022 11:09 AM
Hello there!
In most cases, an incorrect function indicates that the command being used has some kind of syntax issue or there is an issue with accessing the referenced file. There are other possible reasons though.
We recommend the following:
Do note that the commands and parameters used for deployment packages can vary greatly depending on the environment they're used in, the publisher of the software being deployed, etc. As such we can only provide limited support in troubleshooting custom deployment packages.
‎09-22-2022 07:12 PM
‎09-23-2022 09:33 AM
Hello there!
The message "package timeout reached" indicates that your package did not finish within the time you defined as the Max Duration for the deployment package. This can happen because:
We recommend that you review your package and manually test each step on a target machine. Copy the Command of your step and manually run it in Command Prompt on a target machine to see if it works. Replace {packageshare} with the UNC path of your package share as defined under Deployment\Security Options. This should help you identify the cause of the issue. Only when the command works silently and within the allotted time in Command Prompt will it work in Lansweeper as well.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now