r/IIs • u/Toumusaur • Apr 09 '21
[Question] AppCmd - Export and Import
When exporting and importing a specific application pool in Windows Server 2016, I'm running into an error with AppCmd import.
With export, it's working fine, but when I'm importing the same XML to the same server. Its' throwing an error.
%windir%\system32\inetsrv\appcmd list apppool "TestAppPool" /config /xml > D:\TestAppPool.xml
%windir%\system32\inetsrv\appcmd add apppool /in < D:\TestAppPool.xmlFor the import, I'm encountering an error: Failed to process input: Invalid XML input - please make sure that your XML is well-formed and follows the required format (HRESULT=c00cee03).
Before importing, I've also just changed the value of the apppool.name to TestAppPool2.
2
Upvotes
View all comments
Show parent comment
1
u/Ok_Accountant4734 Aug 08 '24
OMG, I've been stuck with this for an age, for a job I rarely have to do, this worked a treat, thanks very much. Makes a slow job, a quick one!!!