I'm failing to export application pools from server to another newly created server.
These are the steps I'm Following
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
And this shows up
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 . )
What am I doing wrong??