EXE is being run. Identifiers
and arguments are generally optional but may be required for certain command
combinations. The supported object types are listed in Table 6-2.
Figure 6-10. Listing Web site status using APPCMD.EXE
196 Microsoft Windows Server 2008 Administration
Returning to the APPCMD.EXE example, you can see how parameters are used by
looking at a more specific version of that command. The preceding command lists all the
virtual sites on your server; if you want to see the virtual site information about a specific
site??”for example, the default Web site??”you can run the following command:
APPCMD.EXE list SITE "Default Web Site"
In the output of the APPCMD.EXE list SITE command, you will notice a number
of comma-delimited properties displayed in name/value pairs enclosed in parentheses.
You can refine the output to any of these properties by specifying it as a parameter??”for
example, to show all started virtual sites, you can run this:
APPCMD.EXE list SITE /state:started
You can also use APPCMD.EXE to create a virtual site. To find out what parameters
are required to create a site, run the following command:
APPCMD.EXE add SITE /?
From that command??™s output, you??™ll see that this command has four required parameters:
name, id, bindings, and physicalPath. The name is the name of your site. If a space
appears in the name of the site, simply enclose the site name in double quotation marks
("Test Website").
Pages:
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245