I am trying to export application pools from one server and then import it to newly created server.
Step 1: Export on server1
D:>%windir%\system32\inetsrv\appcmd list apppool /config /xml > d:\apppools.xml
Step2: Deleting duplicate apppools from xml file
Removed tags for defaultAppPool, .NetVxx appPools.
Step3: Importing on Server2
- copied the apppools.xml file on server2
- %windir%\system32\inetsrv\appcmd add apppool /in < D:\ServerFeature\apppools.xml
this gives error
D:\ServerFeature>%windir%\system32\inetsrv\appcmd add apppool /in < D:\ServerFea ture\apppools.xml ERROR ( message:Configuration error Filename: redirection.config Line Number: 0 Description: Cannot read configuration file due to insufficient permissions . )
Please help me resolve this issue.