The error message you receive, "Incorrect function" means that the command was executed but returned an error. This can have many different causes (File not found, access denied, incorrect command or other).
I'd recommend checking you deployment log to see what step the package failed. This might give you an indication of where it went wrong.
Additionally, you can test your deployment package steps. For testing the commands:
- Copy the Result command of the failed deployment package.
- Use the exact path defined under Deployment\Security options.
- Paste the command into the command prompt of a machine where the deployment failed.
- This should help you identify the cause of the issue. Only when the command works in Command Prompt will it work in Lansweeper as well.
- If the command worked then we recommend that you check that the command has been added correctly to your package and the parameter are also correctly added to the parameter field.
If a step works in the Command Prompt, it should work in the deployment package.