EXE.
For example, given the Test Website just created, you can run the following commands
first to determine what applications are associated to it and then, based on the applications,
you can find what virtual directories are associated with those applications.
APPCMD.EXE list APPS /site.name:"Test Website"
APPCMD.EXE list VDIR /app.name:"Test Website/"
The output of the list APPS command against the site name ???Test Website??? returns an
application called ???Test Website/??? that is associated with the application pool called
DefaultAppPool. The list VDIR command requires an application name as its
parameter, so we use the information retrieved from list APPS, which in this case is the
application name ???Test Website/???; we can then determine that the virtual directory for
???Test Website/??? is C:\inetpub\TestWebsite, just as we had specified when we created it.
APPCMD.EXE can also be used to back up and restore the IIS global configuration.
Whenever you make major configuration changes to your IIS server, it??™s a good idea
to back up this global configuration just in case it is modified inadvertently and you
need to restore it to a good configuration. To create a configuration backup and call it
IIS_Backup, you can run this:
APPCMD.EXE add backup IIS_Backup
TIP You can omit the identifier, which in this case is IIS_Backup, if you don??™t care what the backup
is called.
Pages:
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247