hexadecimal value 0x15, is an invalid character. Line 1, position 22246.

Hello.

I get this error:

"Command execution stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot process xml from 'Output' stream of 'C:\Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe': '', hexadecimal value 0x15, is an invalid character. Line 1, position 22246."

When I try to run Add-MailboxFolderPermission.

My script is:

If i remove the commend : "$ErrorActionPreference ="Stop"" The runbook stuck as running and when I stop it manually the script running successfully.

Any idea someone?

Thanks!

March 22nd, 2015 2:51am

Hello,

Please test if you can run the script in powershell ISE, you can write published data you need to txt or event log so that you can use them in powershell ISE.

Free Windows Admin Tool Kit Click here and download it now
March 22nd, 2015 10:39pm

With PS ISE that work fine without errors...

Your invite is to call PS script and not run it from the runbook???

March 23rd, 2015 3:15am

Hi,

the account running "Orchestrator Runbook Service" has the the same rights in Exchange as the account running PowerShell ISE?

Regards,

Stefan

Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2015 3:30am

Yes, and maybe more...

The big questions is why when I try to add -ErrorAction SilentlyContinue the runbook stuck until i stop him manually and just then the script actually run.

If the "-ErrorAction SilentlyContinue" will work without stuck the runbook that be great.

March 23rd, 2015 3:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics