A parameter cannot be found that matches parameter name 'Credential'

Hi!

I am working with Invoke Powershell activity and I am encountering this error:

RemoteException wrapping System.Management.Automation.ParameterBindingException: A parameter cannot be found that matches parameter name 'Credential'. 
   at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance,
ActivityExecutor executor,
BookmarkManager bookmarkManager)
   at System.Activities.ActivityInstance.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)

I am using the following script:

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force
Import-Module ExchangeOnlineManagement

Connect-IPPSSession -Credential $Credential

The script works fine on Powershell ISE. Any idea how to fix this issue?

Thank you!

Hi @_pjflo

Check out this thread. It will help you.

Regards

Hi, thank you for your response. I saw that thread too, but I still don’t get how to fix it.

@_pjflo

Check if changing to 64 bit execution fixes the issue

Cheers

Check out this thread. It might help you resolve the issue.

Regards