I’m writing a batch script to deploy web sites packaged with Visual Studio 2010. In the script, I’m adding new sites as such:
appcmd add site /name:MySite /id:123
However, I don’t want to specify a site id. I would just like appcmd to randomly assign one for me. But the id parameter is required for appcmd, so how do I go around about it?
I’ve never known the /id param to be required – I’ve always used the form:
And never had any problems. What error is appcmd giving you when you don’t specify it?