The following command uses the -pd option with the -app option: aspnet_regiis -pd connectionStrings -app /MyApp