I cant seem to get it to work. I need to create a site with the below
settings via script.
I am running this command in a bat file:
cscript.exe c:\windows\system32\iiscnfg.vbs /import /f importreport.xml /sp
/lm/w3svc/1/Root/PERweb /dp /lm/w3svc/1/Root/PERweb
and the xml import file looks like:
<?xml version ="1.0"?>
<configuration xmlns="urn:microsoft-catalog:XML_Metabase_V54_0">
<MBProperty>
<IIsWebVirtualDir Location ="/lm/w3svc/1/ROOT/PERweb"
AccessFlags="AccessRead | AccessScript"
AppFriendlyName="PERweb"
AppIsolated="2"
AppRoot="/LM/W3SVC/1/Root/PERweb"
AuthFlags="AuthNTLM"
DefaultDoc="Default.aspx"
DirBrowseFlags="DirBrowseShowDate | DirBrowseShowTime | DirBrowseShowSize
| DirBrowseShowExtension | DirBrowseShowLongDate | EnableDefaultDoc"
Path="C:\Inetpub\wwwroot\PERweb"
>
</IIsWebVirtualDir>
</MBProperty>
</configuration>
I always get the message:
connecting to server...done.
error while importing configuration.
Any idea's?