Hi all,
Looking for some help with PowerShell.
We have a script that runs and allows us to perform various tasks such as creating mailboxes on certain mailbox databases, create new users accounts etc.
However the problem is, the script won't work on my machine. It will work on a colleagues machine while logged in as myself and if I log into the server directly and run the script, it works fine.
I've checked and the particular line that's causing the script to fall over is -
Code:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://servername/PowerShell/ -Authentication Kerberos
The error is - New-PSSession : [servername] Connecting to remote server servername failed with the following error message : No mapping for the Unicode character exists in the target multi-byte code page. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
The character its referring to is the "N".
I've Googled until my fingers feel like they are falling off and have spoken to the guy who wrote the script and we can't pin point the cause.
Have also checked the configurations between our machines and they *appear* to be the same, both built from the same image.
Any help or points would be appreciated.
Thanks,