When I’m attempting to run a script under either PS 5.1 or 7+ with my credentials, I receive this error. Not really sure what to even start on troubleshooting.
Error executing job: An error occurred trying to start process 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe' with working directory 'C:\Users\dcherry\AppData\Roaming\PowerShellUniversal\Repository'. The stub received bad data.
I think this happens when the user’s domain name isn’t included in the credential. It’s a super weird error that we should probably handle better and just provide a proper one.
Can you formatting the credential like “domain\username” or “username@domain”?