IISCNFG problem importing, export works fine

I am trying to export and then import the entire IIS configuration of a site, here is my syntax.

iiscnfg /export /f c:\temp\iisconfig.xml /sp / /children

^^ this works fine.

i then copy the iisconfig.xml to the same path on the second server and attempt an import

iiscnfg /import /f c:\temp\iisconfig.xml /sp / /children /inherited /dp /
connecting to server ...Done
Error &H1F4: Variable is undefined

no matter what different switches i try i keep getting this Error &H1F4: Variable is undefined error.  i contacted microsoft and the engineer completley threw me off and told me to use IISMT instead but IISMT keeps on making duplicate copies of the sites in IIS every 5 minutes when the task runs.

these are both windows 2003 enterprise r2 sp1 servers
noneilAsked:
Who is Participating?
 
oBdAConnect With a Mentor Commented:
Rename the %Systemroot%\system32\iiscnfg.vbs on the machine where it's not working, copy the one from the working machine to the same folder, try again.
0
 
oBdACommented:
The syntax requires the destination path directly after the source path; try
iiscnfg /import /f c:\temp\iisconfig.xml /sp / /dp / /children /inherited
0
 
noneilAuthor Commented:
thank you for your reply, still having the same problem

iiscnfg /import /f c:\temp\iisconfig.xml /sp / /dp / /children /inherited
Connecting to server ...Done.
Error &H1F4: Variable is undefined
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.