You install the Web Server (IIS) server role on a server that runs Windows Server 2008 R2. You
configure a Web site named contoso.com and a Web application named Accounting on the Web
server. The Web server runs out of disk space. You move Accounting to another drive on the Web
server. The following table shows the current application configuration:
Users report that they cannot access the Accounting application. You need to enable users to access
Accounting application. Which command should you run on the server?
A.
appcmd add app /site.name: contoso /path:/Accounting /physicalPath:d:\Accounting
B.
appcmd add app /site.name: contoso /path:/Accounting /physicalPath:f:\Accounting
C.
appcmd set app /site.name: contoso /path:/Accounting /physicalPath:d:\Accounting
D.
appcmd set app /site.name: contoso /path:/Accounting /physicalPath:f:\Accounting
Explanation:
* The mentioned answer does not work in reallife, atleast not on Windows2008R2 RTM.*
But it is the awnser that looks syntax wise the most as the following:
appcmd set app /app.name: contoso/Acctg /[path=’/Accounting’].physicalPath:D:
\Accounting Command Line
To change the path of an application’s content, use the following syntax:
appcmd set app /app.name: string /[path=’/’].physicalPath: string The variable app.name string is the
virtual path of the application, and physicalPath string is the physical path of the application’s
content.
For example, to change the physical path of the location D:\Acctg for an application named Acctg in
a site named contoso, type the following at the command prompt, and then press ENTER:
appcmd set app /app.name: contoso/Acctg /[path=’/Accounting’].physicalPath:D:
\Accounting
Source: http://technet.microsoft.com/nl-nl/library/cc725781(WS.10).aspx