I’ve successfully created OS template for windows server 2012 and 2016 with awesome KB in Solidcp manuals, but when I try to use 2016unattend-SCP.xml answer file in windows server 2019, I get an error in deploying the VM. The error refers to line 28 of the file. After some search I figured the file is not actually a well-formatted xml, which is strange cause the same file works perfectly for win2016. When I use WSIM validator I get this error:
System.Xml.XmlException: ‘ad’ is an undeclared prefix. Line 28, position 5.
Using xml validators returns this:
The prefix “ad” for element “ad:if” is not bound.
I’d appreciate any insights on this matter.

Answered question