This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error while setting QServiceConnection while creating share

While executing a script i am facing below error. The term 'Set-QServiceConnection' 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.

How it can be resolved?

Top Replies

Parents
  • Unfortunately, we need more information from you to assist here.

    What version of DGE are you deploying?

    Did you import the PowerShell module?

    Trevor

  • I am using One IM Data Governance 8.0. and i have not imported Powershell module manually.

    I have raised request for New file system share and while creating that the OOOB process are called.In one of process step while executing the script i am receiving this error.

    \LOCALJOBSERVER2 - VI.JobService.JobComponents.PowerShellComponent - 68eed821-b684-44d4-936c-e6c13931ac6b: Errors occurred
    Last action taken by target system provider was: The term 'Set-QServiceConnection' 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.

    Process task Execute Script failed.

    Snippet from script:

    theScript.AppendLine("Import-Module ""C:\Program Files\One Identity\One Identity Manager\QAM.Client.PowerShell.dll"" -WarningAction Ignore")
    theScript.AppendLine(String.Format("Set-QServiceConnection -Deployment {0} -ServerName {1} -Port {2}", _
    Connection.GetConfigParm("TargetSystem\ADS\QAM\QAMServer\Deployment"), _

    Connection.GetConfigParm("TargetSystem\ADS\QAM\QAMServer\ServerName"), _ 

    Connection.GetConfigParm("TargetSystem\ADS\QAM\QAMServer\Port"))

    Kindly suggest.

  • Hi,

    As suggests ..... the powershell module that contains the command 'Set-QServiceConnection' must be imported on the job server or server that is running that Powershell.  And the user or context within which that powershell is running must have access to that module.  I know nothing about DGE but this is a Powershell issue.

    HTH, Barry.

  • Please refer to the documentation for more information: https://support.oneidentity.com/technical-documents/identity-manager-data-governance-edition/8.0/user-guide/49#TOPIC-853223.

    The cmdlets cannot be accessed until they are imported.

    Thanks

Reply Children
  • Thanks for your input!

    I have imported module and set the correct path.Also, i have executed below command in Powershell and it is executed successfully.

    Set-QServiceConnection -Deployment D-ServerName S -Port 8722 

    But, while executing the job chain i am still having the same issue.I guess the default path for Import-module "<path>" which is there is in script is not applicable to us, so i modified the path in script but still i have same issue.

    Kindly guide.