Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

I am trying to enable the telnet client on Windows 7 using this cmd line in Deploy: pkgmgr /iu:"TelnetClient"

I am able to run it from my laptop with success from the cmd line but when I use the cmd function in Deploy, I receive the following error: "Package returned error code 2146498548.

Is there anything that i am doing wrong?

Damell

0

Comments

2 comments
Date Votes
  • The command you posted looks fine. The error

    -2146498548 

    is usually thrown because of a misspelled word. Were there other pkgmgr commands included?

    If the command is correctly spelled then I would say that Telnet Client is not installed. Remember that there is a difference between having a Windows Feature Installed vs. Enabled. The parameter

    /iu:<FeatureName> 

    is used to enable a feature. If, however, the feature hasn't been installed then this error would be thrown.

    Here is a package that I used to successfully enable the Telnet Client. It simply runs a pkgmgr command using the Command step. I did set the conditions to only work on Windows Vista or higher.

    EnableTelnetClient.png

    0
  • Thanks for your help...the test machine that I was using did not have the feature installed.  I should have checked that!

    0