Which command should you run on the server?

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 Acctg on the Web server.
The Web server runs out of disk space. You move Acctg to another drive on the Web server. The
following table shows the current application configuration:
Users report that they cannot access Acctg. You need to enable users to access Acctg. Which
command should you run on the server?

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 Acctg on the Web server.
The Web server runs out of disk space. You move Acctg to another drive on the Web server. The
following table shows the current application configuration:
Users report that they cannot access Acctg. You need to enable users to access Acctg. Which
command should you run on the server?

A.
appcmd add app /site.name: contoso /path:/Acctg /physicalPath:d:\Acctg

B.
appcmd add app /site.name: contoso /path:/Acctg /physicalPath:f:\Acctg

C.
appcmd set app /site.name: contoso /path:/Acctg /physicalPath:d:V\cctg

D.
appcmd set app /site.name: contoso /path:/Acctg /physicalPath:f:\Acctg

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=’/Acctg’].physicalPath:F:\Acctg 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=’/Acctg’].physicalPath:F:\Acctg
Source: http://technet.microsoft.com/nl-nl/library/cc725781(WS.10).aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *