Home Powershell

Workflow with powershell failing in one environment but not the other

Dean_MrazekDean_Mrazek Customer IT Monkey ✭

Hi

I have a workflow that uses a powershell script which runs fine in two of my environments but not another.

The powershell fails with the error "Script encountered an error: The term 'Get-SCSMRelatedObject' 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." but when I run Get-SCSMRelatedObject outside of the workflow on the same server the workflow is failing on, the command runs fine.

When I run Get-Module -ListAvailable -Name smlets, the results on two different servers are the same.

Sign In or Register to comment.