KnowledgeBase Content Details

August 08, 2019

Question:

When I try to get the Host ID by running the command "wmic diskdrive get serialnumber", I am getting the error "Invalid XML content" in Windows 7

Answer:

This issue occurs because the XML parser treats the control characters that are included in the serial number of some drives as invalid. Please refer and follow the instructions from the below link to resolve this issue. https://support.microsoft.com/en-us/help/2664203/invalid-xml-content-error-message-when-you-run-a-wmic-command-in-windo

Back to KnowledgeBase