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
  • 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