Unable to parse XML: Invalid unicode character.

May 15, 2012 at 5:45 PM

Running the following command line against a Debian agent, I get the given results.

>winrm enumerate http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_Agent?__cimnamespace=root/scx -username:root -password:PASSWORD -auth:basic -r:https://SERVER:1270/wsman -skipCACheck -encoding:UTF-8 -format:#pretty<wsman:Results xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman/results">
Unable to parse XML: Invalid unicode character.
</wsman:Results>

 

Using xml form, I get the following.

<wsman:Results xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman/results"><p:SCX_Agent xmlns:p="http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_Agent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang=""><p:Architecture>x86</p:Architecture><p:BuildDate>2010-12-31T00:00:00Z</p:BuildDate><p:BuildNumber>265</p:BuildNumber><p:Caption>SCX Agent meta-information</p:Caption><p:Description>XPlatProviders_Build - 20101231</p:Description><p:ElementName xsi:nil="true"/><p:HealthState xsi:nil="true"/><p:Hostname>lsgmsadonis02.mslab.local</p:Hostname><p:InstallDate>2012-05-15T11:19:56Z</p:InstallDate><p:KitVersionString>1.0.4-265</p:KitVersionString><p:MajorVersion>1</p:MajorVersion><p:MinActiveLogSeverityThreshold>INFO</p:MinActiveLogSeverityThreshold><p:MinorVersion>0</p:MinorVersion><p:Name>scx</p:Name><p:OSAlias>Debian</p:OSAlias><p:OSName>&#27;[?7h&#27;[40m&#27;[2J&#27;[0;1m</p:OSName><p:OSType>Linux</p:OSType><p:OSVersion>7h&#27;[40m&#27;[2J&#27;[0;1m</p:OSVersion><p:OperationalStatus xsi:nil="true"/><p:RevisionNumber>4</p:RevisionNumber><p:Status xsi:nil="true"/><p:StatusDescriptions xsi:nil="true"/><p:UnameArchitecture>i686</p:UnameArchitecture><p:VersionString>1.0.4-265</p:VersionString></p:SCX_Agent></wsman:Results>

 

See the, OS Version use unknown char.