§ Works with both “appcmd <object> <verb>” and “appcmd <verb> <object>” command styles.
§ Shows list of objects and verbs available. Builds auto complete list dynamically so that you see only few options.
§ Builds list of current application pools, sites, applications, virtual directories, backups, module, traces, worker processes and shows them as parameter values. Updates this list when “appcmd add/delete” commands are used.
§ Force update option for tool to pick latest configuration data when “appcmd set config” or other scripts/tools are used to add/delete apppools/sites/apps/vdirs.
§ Parses the schema and shows section names in commands which require section names. Custom defined sections are automatically picked.
§ When working with a particular section, shows list of attributes/elements/collections and helps you setting attributes and adding/removing collection elements.
§ Shows attributes, elements, collections which you can set using “appcmd set apppool|site|app|vdir|module” commands.
§ Shows general appcmd parameters. Uses –parameter for general parameters rather than /parameter to show they are different.
§ Shows possible attributes when “appcmd –text:” used.
§ Can execute command and see the output in the same window.
§ Shows examples of commands you are working with which are in “appcmd <verb> <object> /?” help.
§ Supports auto complete and command execution even when piping commands together.
§ Limited support for identifiers. There is a corresponding /parameter option for most of the identifiers. Uses /parameter:value.
§ NEW - Up-down lets you browse recently executed commands.
§ NEW - If you run the application without sufficient privileges, it shows UAC dialog box for you to grant access.
You can use AppcmdUI only on machines which has IIS7 and appcmd.exe installed. Download attached AppcmdUIInstall.zip and run self extracting package AppcmdUIInstall.exe. Extract files (AppcmdUI.exe and AppcmdUI.xml) to a folder on your machine and you are done.
How to Use
Run AppcmdUI.exe as elevated (newest version will demand administrator access if needed only if when you don't run it from command window). Running from an elevated command prompt is not enough because of UAC settings for applications which are not under windows directory. Start typing appcmd commands in the textbox. You will get list of available options as you go along. Use mouse or down/up arrow keys to select any of available options. Auto complete list is updated every time you type space/comma/colon/dot so that you only see few options which are valid in current context and helps you choose only next option. Snapshot below shows list of available objects in appcmd which are shown on typing “appcmd “.
AppcmdUI uses “appcmd <object> <verb>” format. So you see list of available objects after appcmd. If you type “appcmd <verb>” and then space, you will see list of objects which you can use with the verb you typed. If you want to get list of verbs and not objects when you type “appcmd “, you can set <verb> <object> option in the menu as shown below.
When you have the <verb> <object> option set, you will see the available verbs after appcmd as shown below.
Once you have selected verb and object, you will see list of available options which can be used with them.
When you need the available application pools, sites, applications, virtual directories, backups, traces, worker processes in the command, AppcmdUI shows the values you can use. Next time when you need to start or stop apppools/sites, delete apps/vdirs or inspect traces, you won’t need “appcmd list” command first.
AppcmdUI picks up list of application pools, sites, applications, virtual directories, backups once and update this list only when “appcmd add/delete” calls are made. If you use “appcmd set config” call or some other means of creating apppools/sites/apps etc, you would see the list is not updated. Eg. If a new application pool “AppcmdAppPool” is created using “appcmd set config /section:applicationPools /+[name='AppcmdAppPool']", that apppool is not shown in the list of available apppools.
You can use "Force Update" option to force AppcmdUI to update list of application pools, sites, applications etc.
After forcing an update, "AppcmdAppPool" is shown in the list of available application pools.
Working with configuration
When you are working with “appcmd list config” or “appcmd set config”, you get list of available sections as soon as you enter “/section:” as shown below.
AppcmdUI also shows you list of attributes, elements, collections when working with set/list commands. Adding a collection element is now a whole lot easier as you can see below.
List of attributes, elements, collections is also available when you work with “appcmd set <apppool|site|app|vdir”. In the snapshot below, I am getting attributes which can be set for a virtual directory.
Schema elements are available with various list commands as well after you type “-text:”. –text with list command allows you to print only particular attributes.
Hope you find working with appcmd much easier with this.
View the original post