![]() ![]() In Windows 8 and Windows Server 2012, the AppHostConfig attribute was added. In the second example, the attribute specifies that the Marketing application pool use the Network Service identity. In the first example, the attribute limits the query results by listing only application pools that are configured to use Network Service. The processModel.identityType attribute is used in both of the previous examples. Specify values for attributes when you want to limit the results of a list command, or when you want to change the value of an attribute for an Appcmd.exe object.įor example, to list application pools configured to use Network Service, type the following command at the command prompt, and then press ENTER:Īppcmd list apppool /processModel.identityType:NetworkServiceĪlternatively, to configure an application pool named Marketing to use Network Service, type the following command at the command prompt, and then press ENTER:Īppcmd set apppool /apppool.name:Marketing /processModel.identityType:NetworkService Working with attributes and values in Appcmd.exe For example, to view a list of commands for the site object, type the following command at the command prompt, and then press ENTER:įor more information about Appcmd.exe objects, see Working with objects in Appcmd.exe. The variable object is the name of the object for which you want to view commands. To view the commands for an object, use the following syntax: Each of these objects has commands that enable you to work with that object. Use Appcmd.exe commands to view or change configuration settings for an Appcmd.exe object. For more information about commands, see Working with commands in Appcmd.exe. You can then configure the object by using commands. To view a list of Appcmd.exe objects, type the following command at the command prompt, and then press ENTER: Use objects in Appcmd.exe to specify what you want to view or change in configuration. To view help information about the settings that you can configure by using an Appcmd.exe object and command, such as the site object and add command, type the following at the command prompt, and then press ENTER:Īppcmd add site /? Working with objects in Appcmd.exe To view help information about a specific Appcmd.exe object, such as the commands that you can use with the site object, type the following command at the command prompt, and then press ENTER: To view help information about Appcmd.exe, type a command and then type /?.įor example, if you want to view introductory help information about Appcmd.exe, type the following command at the command prompt, and then press ENTER: Get help about Appcmd.exeĪppcmd.exe contains built-in help information. To run the Command Prompt as an administrator, right-click the icon in the Start menu, and then click Run as administrator. Users who view or change Web.config files in site or application directories must have access to read and write to files in those directories. In addition, members of the Administrators group must start Appcmd.exe with elevated permissions to view and change settings in the server-level configuration files: nfig, the root Web.config file (in the. Appcmd.exe resides in the %windir%\system32\inetsrv directory, which is available only to the Administrator account or to users who are members of the Administrators group on the computer. ![]() Open Appcmd.exe if you want to configure IIS 8 settings by using a command-shell window. Use Appcmd.exe to change configuration in a parent-level configuration file Use Appcmd.exe to change configuration in a Web.config file Working with attributes and values in Appcmd.exeĬonfigure server-level settings by using Appcmd.exeĬonfigure settings for a site, application, virtual directory, or URL by using Appcmd.exe For example, you can complete complex tasks like stopping all sites that have requests that have been running longer than 60 seconds. For example, you can use the list command to search for information about an object, such as an application, or you can use the add command to create an object, such as a site.Īdditionally, you can combine commands together to return more complex data about objects on your web server or to perform tasks that are more complex. View information about worker processes and requests that are running on the web server.Īppcmd.exe provides consistent commands for common queries and configuration tasks, which reduces the complexity of learning syntax. Start, stop, and recycle application pools. The following examples are tasks that you can complete with Appcmd.exe:Ĭreate and configure sites, applications, application pools, and virtual directories. IIS 8 provides a command-line tool, Appcmd.exe, to configure and query objects on your web server, and to return output in text or XML. Applies To: Windows Server 2012 R2, Windows Server 2012 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |