Estou perdendo uma dll ou algo assim?
WMIC PATH CIM_PhysicalMedia
I keep getting:
Invalid XML Content.
Você pode estar faltando um hotfix:
This issue occurs because the XML parser treats the control characters that are included in the serial number of some drives as invalid.
Tente instalar o hotfix disponível no link de origem abaixo (botão "Download de hotfix disponível")
Mensagem de erro "Conteúdo XML inválido" quando você executa um comando WMIC no Windows 7 ou no Windows Server 2008 R2
SYMPTOMS
Consider the following scenario. You connect a USB flash drive to a computer that is running Windows 7 or Windows Server 2008 R2. You try to run one of the following Windows Management Instrumentation Command-line (WMIC) tool commands to query the hard disk drives on the computer:
wmic diskdrive get * wmic diskdrive get serialNumber
In this scenario, you receive an error message that resembles the following:
Invalid XML content
CAUSE
This issue occurs because the XML parser treats the control characters that are included in the serial number of some drives as invalid. Therefore, the XML parser cannot parse content that includes these control characters. This behavior causes valid results for other drives to be displayed incorrectly, together with the behavior that is mentioned in the "Symptoms" section.
RESOLUTION
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.
If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.
Mensagem de erro "Conteúdo XML inválido" da origem ao executar um comando WMIC no Windows 7 ou no Windows Server 2008 R2