Error Connect-QADService to execute custom process a PowerShell's script

Hello,

I have a Process Step with the value "PowershellComponentNet4 - ExecuteScript" in the field "Process task". My powerShell's script execute the command "Connect-QADService" and it work fine if I execute the script directly. Now, I execute from the process step, it don't work fine. The error is:

Output=The term 'Connect-QADService' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again

A greets

Parents Reply Children
  • The PowerShellComponentNet4 does only support PowerShell 3 - 5.1. Are you sure that you have one of those versions installed on the machine running the Job Service?

  • If i review the features de Windows, I have installed:

    - Windows PowerShell 5.1

    - Windows PowerShell 2.0 Engine

    - - Windows PowerShell ISE

  • I assume these are the values from the machine running the Job Service? Is it the same machine you can successfully run the script on? If so, what Powershell version are you using to successfully start the script?

  • I am using Windows PowerShell ISE and I work ok.

  • What about the answers to the other questions?



  • PS C:\OneIdentity\CrearEmpresa>  $PSVersionTable

    Name                           Value                                                                                                                         
    ----                           -----                                                                                                                         
    PSVersion                      5.1.17763.1490                                                                                                                
    PSEdition                      Desktop                                                                                                                       
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                       
    BuildVersion                   10.0.17763.1490                                                                                                               
    CLRVersion                     4.0.30319.42000                                                                                                               
    WSManStackVersion              3.0                                                                                                                           
    PSRemotingProtocolVersion      2.3                                                                                                                           
    SerializationVersion           1.1.0.1

  • I assume these are the values from the machine running the Job Service?

    Is it the same machine you can successfully run the script on?

  • Mmmhh....

    What if you are removing the snapin parameter, and import the module?

    Import-Module ActiveRolesManagementShell

    This depends a little bit on the version of this module you are using.

  • Already it work fine. I have putted the line

    import-module ActiveRolesManagementShell -DisableNameChecking

    Thank you